Core/Spells: Fixed persistent area auras always spawning with no phase

Closes #21747
This commit is contained in:
Shauren
2018-04-01 00:28:09 +02:00
parent f31d907112
commit e8ffa9d9f2

View File

@@ -21,6 +21,7 @@
#include "Log.h"
#include "Map.h"
#include "ObjectAccessor.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "SpellAuras.h"
@@ -96,6 +97,7 @@ bool DynamicObject::CreateDynamicObject(ObjectGuid::LowType guidlow, Unit* caste
}
WorldObject::_Create(ObjectGuid::Create<HighGuid::DynamicObject>(GetMapId(), spell->Id, guidlow));
PhasingHandler::InheritPhaseShift(this, caster);
SetEntry(spell->Id);
SetObjectScale(1.0f);