Support for spell Disarm Trap.

--HG--
branch : trunk
This commit is contained in:
_manuel_
2010-03-26 22:04:38 -03:00
parent 180651d95e
commit 2796f08297

View File

@@ -3409,6 +3409,9 @@ void Spell::EffectOpenLock(uint32 effIndex)
bg->EventPlayerClickedOnFlag(player, gameObjTarget);
return;
}
}else if (gameObjTarget->GetGOInfo()->type == GAMEOBJECT_TYPE_TRAP && gameObjTarget->GetOwner())
{
gameObjTarget->SetLootState(GO_JUST_DEACTIVATED);
}
// TODO: Add script for spell 41920 - Filling, becouse server it freze when use this spell
// handle outdoor pvp object opening, return true if go was registered for handling