aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-24 14:42:24 -0600
committermegamage <none@none>2008-12-24 14:42:24 -0600
commita65bf58497579e5f9123fc4fc645a60741aebcef (patch)
tree1559e54efd415dd19a6fbcc5924c711cde4be400
parentbd2ded228d4f3d4e45f7fa6a715d4cb66b3e0762 (diff)
*Fix fishing.
--HG-- branch : trunk
-rw-r--r--src/game/Spell.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b3930a85520..c2276a24960 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2416,8 +2416,9 @@ void Spell::_handle_immediate_phase()
{
if(spellmgr.EffectTargetType[m_spellInfo->Effect[j]] == SPELL_REQUIRE_DEST)
{
- if(m_targets.HasDest())
- HandleEffects(m_originalCaster, NULL, NULL, j);
+ if(!m_targets.HasDest())
+ m_targets.setDestination(m_caster, false);
+ HandleEffects(m_originalCaster, NULL, NULL, j);
}
else if(spellmgr.EffectTargetType[m_spellInfo->Effect[j]] == SPELL_REQUIRE_NONE)
HandleEffects(m_originalCaster, NULL, NULL, j);