aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp3
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)