feat(Core/Scripting): implement OnlyOnceAreaTrigger & Zul'Gurub's in… (#8850)
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
This commit is contained in:
parent
cde621f9eb
commit
b2ce49135e
9 changed files with 96 additions and 3 deletions
|
|
@ -1101,7 +1101,7 @@ void WorldObject::RemoveFromWorld()
|
|||
Object::RemoveFromWorld();
|
||||
}
|
||||
|
||||
InstanceScript* WorldObject::GetInstanceScript()
|
||||
InstanceScript* WorldObject::GetInstanceScript() const
|
||||
{
|
||||
Map* map = GetMap();
|
||||
return map->IsDungeon() ? map->ToInstanceMap()->GetInstanceScript() : nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue