Fix trap spell casting.

Improved version of Supabad's patch
Closes issue 1910.

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-30 13:09:38 +02:00
parent 213a5e5062
commit 7f81217d68
+1 -2
View File
@@ -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)