Core/GameObject: Fix handling of cooldown for type 6 (trap) GOs. This should fix problems with of trap spamming, like Gift of the Harvester.

This commit is contained in:
runningnak3d
2011-05-02 12:30:05 -04:00
parent e36e6f3281
commit f4a29646a5
@@ -283,7 +283,7 @@ void GameObject::Update(uint32 diff)
else if (Unit* owner = GetOwner())
{
if (owner->isInCombat())
m_cooldownTime = time(NULL) + goInfo->trap.startDelay;
m_cooldownTime = time(NULL) + goInfo->trap.cooldown;
}
m_lootState = GO_READY;
break;