Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*

This commit is contained in:
jackpoz
2014-05-20 21:21:33 +02:00
parent d36ecbf4a3
commit 1083dbb993
148 changed files with 728 additions and 746 deletions

View File

@@ -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);