Fix trap spell casting.
Improved version of Supabad's patch Closes issue 1910. --HG-- branch : trunk
This commit is contained in:
@@ -916,9 +916,8 @@ void GameObject::TriggeringLinkedGameObject(uint32 trapEntry, Unit* target)
|
||||
}
|
||||
|
||||
// found correct GO
|
||||
// FIXME: when GO casting will be implemented trap must cast spell to target
|
||||
if (trapGO)
|
||||
target->CastSpell(target,trapSpell,true, 0, 0, GetGUID());
|
||||
trapGO->CastSpell(target, trapInfo->trap.spellId);
|
||||
}
|
||||
|
||||
GameObject* GameObject::LookupFishingHoleAround(float range)
|
||||
|
||||
Reference in New Issue
Block a user