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
@@ -282,7 +282,7 @@ public:
|
||||
{
|
||||
if (exileTimer <= diff)
|
||||
{
|
||||
if (Unit* temp = Unit::GetUnit(*me, playerGUID))
|
||||
if (Unit* temp = ObjectAccessor::GetUnit(*me, playerGUID))
|
||||
{
|
||||
temp->CastSpell(temp, SPELL_EXILE, true);
|
||||
temp->CastSpell(temp, SPELL_BANISH_TELEPORT, true);
|
||||
@@ -347,7 +347,7 @@ public:
|
||||
{
|
||||
if (exileTimer <= diff)
|
||||
{
|
||||
if (Unit* temp = Unit::GetUnit(*me, playerGUID))
|
||||
if (Unit* temp = ObjectAccessor::GetUnit(*me, playerGUID))
|
||||
{
|
||||
temp->CastSpell(temp, SPELL_EXILE, true);
|
||||
temp->CastSpell(temp, SPELL_BANISH_TELEPORT, true);
|
||||
|
||||
Reference in new issue
Block a user