[11577] Spell effects with IsExplicitPositiveTarget always positive.

This fix for example spell 1008 buff state.
This commit is contained in:
VladimirMangos 2011-05-31 13:20:56 +04:00
parent 9e83454a23
commit c462ee5834
2 changed files with 7 additions and 1 deletions

View file

@ -649,6 +649,12 @@ bool IsExplicitNegativeTarget(uint32 targetA)
bool IsPositiveEffect(SpellEntry const *spellproto, SpellEffectIndex effIndex)
{
// explicit targeting set positiveness independent from real effect
// Note: IsExplicitNegativeTarget can't be used symmetric (look some TARGET_SINGLE_ENEMY spells for example)
if (IsExplicitPositiveTarget(spellproto->EffectImplicitTargetA[effIndex]) ||
IsExplicitPositiveTarget(spellproto->EffectImplicitTargetB[effIndex]))
return true;
switch(spellproto->Effect[effIndex])
{
case SPELL_EFFECT_DUMMY: