Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*
This commit is contained in:
1 parent
d36ecbf4a3
commit
1083dbb993
148 files changed
+728
-746
No files matched your search
@@ -130,7 +130,7 @@ public:
|
||||
{
|
||||
if (summoned->GetEntry() == ENTRY_HIGHBORNE_BUNNY)
|
||||
{
|
||||
if (Creature* target = Unit::GetCreature(*summoned, targetGUID))
|
||||
if (Creature* target = ObjectAccessor::GetCreature(*summoned, targetGUID))
|
||||
{
|
||||
target->MonsterMoveWithSpeed(target->GetPositionX(), target->GetPositionY(), me->GetPositionZ()+15.0f, 0);
|
||||
target->SetPosition(target->GetPositionX(), target->GetPositionY(), me->GetPositionZ()+15.0f, 0.0f);
|
||||
|
||||
Reference in new issue
Block a user