diff options
author | Spp <none@none> | 2010-04-30 13:09:38 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-30 13:09:38 +0200 |
commit | 7f81217d68b3379dd681f7129c432f79341cd3c5 (patch) | |
tree | 4d958920dce379ea33438fe405669bbb4bc6dbd6 | |
parent | 213a5e50620a5d8967d6f5dd33ad066e4961e962 (diff) |
Fix trap spell casting.
Improved version of Supabad's patch
Closes issue 1910.
--HG--
branch : trunk
-rw-r--r-- | src/game/GameObject.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index ea582b28e03..dc5038a9eec 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -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) |