mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Fix chain heal. Heal target even when it has full health.
--HG-- branch : trunk
This commit is contained in:
@@ -1361,8 +1361,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);
|
||||
|
||||
Reference in New Issue
Block a user