From 7f81217d68b3379dd681f7129c432f79341cd3c5 Mon Sep 17 00:00:00 2001 From: Spp Date: Fri, 30 Apr 2010 13:09:38 +0200 Subject: Fix trap spell casting. Improved version of Supabad's patch Closes issue 1910. --HG-- branch : trunk --- src/game/GameObject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/GameObject.cpp') 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) -- cgit v1.2.3