[9317] Call linkedtrap summon in more cases.

* GAMEOBJECT_TYPE_BUTTON can have linked traps
* Spell::EffectSummonObject also can summon objects with linked traps

Thanks to patman128 for research second case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
VladimirMangos 2010-02-07 00:48:23 +03:00
parent 02c23b247e
commit 87a35b0489
5 changed files with 52 additions and 43 deletions

View file

@ -5959,6 +5959,8 @@ void ObjectMgr::LoadGameobjectInfo()
{
if (goInfo->button.lockId)
CheckGOLockId(goInfo,goInfo->button.lockId,1);
if (goInfo->button.linkedTrapId) // linked trap
CheckGOLinkedTrapId(goInfo,goInfo->button.linkedTrapId,3);
CheckGONoDamageImmuneId(goInfo,goInfo->button.noDamageImmune,4);
break;
}