Core/Gameobject: Fix default cooldown on traps with no cooldown. Should stop you from stepping in camp fires and getting Spam(c) fried. (I prefer steak, thank you).

This commit is contained in:
tobmaps
2011-05-02 13:36:17 -04:00
committed by runningnak3d
parent f4a29646a5
commit 6f154498e0
@@ -451,7 +451,7 @@ void GameObject::Update(uint32 diff)
if (goInfo->trap.spellId)
CastSpell(ok, goInfo->trap.spellId);
m_cooldownTime = time(NULL) + goInfo->trap.cooldown ? goInfo->trap.cooldown : uint32(4); // template or 4 seconds
m_cooldownTime = time(NULL) + (goInfo->trap.cooldown ? goInfo->trap.cooldown : uint32(4)); // template or 4 seconds
if (goInfo->trap.type == 1)
SetLootState(GO_JUST_DEACTIVATED);