mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Remove unnecessary check in previous fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user