Remove unnecessary check in previous fix

This commit is contained in:
Gacko
2014-05-06 19:06:59 +02:00
parent 41d9364b16
commit 111bbb3620

View File

@@ -561,8 +561,7 @@ void GameObject::Update(uint32 diff)
CastSpell(NULL, goInfo->trap.spellId);
SetLootState(GO_JUST_DEACTIVATED);
}
else if (m_lootStateUnitGUID)
if (Unit* target = Unit::GetUnit(*this, m_lootStateUnitGUID))
else if (Unit* target = Unit::GetUnit(*this, m_lootStateUnitGUID))
{
// Some traps do not have a spell but should be triggered
if (goInfo->trap.spellId)