fix(Core/Conditions): Conditions not working for area auras (#8648)
* Core/Conditions: Fixed conditions not working for area auras Cherry Pick of TC Commit: https://github.com/TrinityCore/TrinityCore/commit/8693ee56955ce4d31e9e69f3971f52e250c1280c
This commit is contained in:
@@ -1530,6 +1530,20 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (spellInfo->Effects[i].Effect)
|
||||||
|
{
|
||||||
|
case SPELL_EFFECT_PERSISTENT_AREA_AURA:
|
||||||
|
case SPELL_EFFECT_APPLY_AREA_AURA_PARTY:
|
||||||
|
case SPELL_EFFECT_APPLY_AREA_AURA_RAID:
|
||||||
|
case SPELL_EFFECT_APPLY_AREA_AURA_FRIEND:
|
||||||
|
case SPELL_EFFECT_APPLY_AREA_AURA_ENEMY:
|
||||||
|
case SPELL_EFFECT_APPLY_AREA_AURA_PET:
|
||||||
|
case SPELL_EFFECT_APPLY_AREA_AURA_OWNER:
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Xinef: chain targets are treated as area targets! Apply conditions!
|
// Xinef: chain targets are treated as area targets! Apply conditions!
|
||||||
if (spellInfo->Effects[i].ChainTarget > 1)
|
if (spellInfo->Effects[i].ChainTarget > 1)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user