mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 04:59:41 -04:00
Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*
This commit is contained in:
@@ -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