AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
InstanceScript.cpp File Reference
#include "InstanceScript.h"
#include "Chat.h"
#include "Creature.h"
#include "DatabaseEnv.h"
#include "GameObject.h"
#include "Group.h"
#include "InstanceSaveMgr.h"
#include "LFGMgr.h"
#include "Log.h"
#include "Map.h"
#include "Opcodes.h"
#include "Pet.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "Spell.h"
#include "WorldSession.h"

Go to the source code of this file.

Functions

bool InstanceHasScript (WorldObject const *obj, char const *scriptName)
 

Function Documentation

◆ InstanceHasScript()

bool InstanceHasScript ( WorldObject const *  obj,
char const *  scriptName 
)
843{
844 if (InstanceMap* instance = obj->GetMap()->ToInstanceMap())
845 {
846 return instance->GetScriptName() == scriptName;
847 }
848
849 return false;
850}
InstanceMap * ToInstanceMap()
Definition: Map.h:544
Definition: Map.h:817

References WorldObject::GetMap(), and Map::ToInstanceMap().

Referenced by GetInstanceAI().