aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-22 22:04:13 -0500
committermegamage <none@none>2009-04-22 22:04:13 -0500
commit92d8abea9539402f382c7a9fc06bb7fd1e195fc4 (patch)
tree80704977d3f42cc5e86ae86c439ccb22be8406ac
parentdb3e17cb7051c6665576060cf9df1b90f6887140 (diff)
*Fix some broken spells without targetA and B.
--HG-- branch : trunk
-rw-r--r--src/game/Spell.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index fde1b8e3fdb..620131e61f6 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -473,6 +473,12 @@ void Spell::FillTargetMap()
if(!targetA && !targetB)
{
+ if(!GetSpellMaxRangeForFriend(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)))
+ {
+ AddUnitTarget(m_caster, i);
+ continue;
+ }
+
// add here custom effects that need default target.
// FOR EVERY TARGET TYPE THERE IS A DIFFERENT FILL!!
switch(m_spellInfo->Effect[i])