mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Some update of spell target selection.
--HG-- branch : trunk
This commit is contained in:
@@ -198,7 +198,7 @@ void GameObject::Update(uint32 /*p_time*/)
|
||||
{
|
||||
// Arming Time for GAMEOBJECT_TYPE_TRAP (6)
|
||||
Unit* owner = GetOwner();
|
||||
if (owner && ((Player*)owner)->isInCombat())
|
||||
if (owner && owner->isInCombat())
|
||||
m_cooldownTime = time(NULL) + GetGOInfo()->trap.startDelay;
|
||||
m_lootState = GO_READY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user