mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 21:20:01 -04:00
Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*
This commit is contained in:
@@ -561,7 +561,7 @@ void GameObject::Update(uint32 diff)
|
||||
CastSpell(NULL, goInfo->trap.spellId);
|
||||
SetLootState(GO_JUST_DEACTIVATED);
|
||||
}
|
||||
else if (Unit* target = Unit::GetUnit(*this, m_lootStateUnitGUID))
|
||||
else if (Unit* target = ObjectAccessor::GetUnit(*this, m_lootStateUnitGUID))
|
||||
{
|
||||
// Some traps do not have a spell but should be triggered
|
||||
if (goInfo->trap.spellId)
|
||||
|
||||
Reference in New Issue
Block a user