diff options
| author | megamage <none@none> | 2009-03-18 15:31:44 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-18 15:31:44 -0600 |
| commit | 82777554a0a14a73e2dc9ffcda662ad89408b229 (patch) | |
| tree | c5b28e3501d4256fa2257b41a001e5ad5f97d375 /src/game/Spell.cpp | |
| parent | 838ad6d847b5058a4eb9fd1be8496bf7ed4ca601 (diff) | |
| parent | dbd69bda613faed2cc30ba95de5c07235ae73653 (diff) | |
*Merge with 243.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index a44086b9407..ed5980eadec 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1327,8 +1327,8 @@ void Spell::SearchChainTarget(std::list<Unit*> &TagUnitMap, float max_range, uin { SearchAreaTarget(tempUnitMap, max_range, PUSH_TARGET_CENTER, SPELL_TARGETS_ALLY); tempUnitMap.sort(ChainHealingOrder(m_caster)); - if(cur->GetHealth() == cur->GetMaxHealth() && tempUnitMap.size()) - cur = tempUnitMap.front(); + //if(cur->GetHealth() == cur->GetMaxHealth() && tempUnitMap.size()) + // cur = tempUnitMap.front(); } else SearchAreaTarget(tempUnitMap, max_range, PUSH_TARGET_CENTER, TargetType); @@ -1970,14 +1970,10 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) break; } - if(unMaxTargets && TagUnitMap.size() > 1) + if(unMaxTargets && !EffectChainTarget && TagUnitMap.size() > 1) { - if(m_targets.getUnitTarget()) - { + if(m_spellInfo->Id == 5246) //Intimidating Shout TagUnitMap.remove(m_targets.getUnitTarget()); - if(m_spellInfo->Id != 5246) //Intimidating Shout - --unMaxTargets; - } // remove random units from the map std::list<Unit*>::iterator itr; @@ -1987,10 +1983,6 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) advance(itr, urand(0, TagUnitMap.size() - 1)); TagUnitMap.erase(itr); } - - // the player's target will always be added to the map - if(m_targets.getUnitTarget() && m_spellInfo->Id != 5246) - TagUnitMap.push_back(m_targets.getUnitTarget()); } } |
