[11435] Fixed IsPositiveEffect triggered spell case and some cleanups

Mostly found in time 400 update.
This commit is contained in:
VladimirMangos 2011-05-08 01:38:28 +04:00
parent 3f531024f7
commit 06ba42ccba
14 changed files with 15 additions and 27 deletions

View file

@ -740,7 +740,7 @@ bool IsPositiveEffect(SpellEntry const *spellproto, SpellEffectIndex effIndex)
{
// if non-positive trigger cast targeted to positive target this main cast is non-positive
// this will place this spell auras as debuffs
if (IsPositiveTarget(spellTriggeredProto->EffectImplicitTargetA[effIndex], spellTriggeredProto->EffectImplicitTargetB[effIndex]) &&
if (IsPositiveTarget(spellTriggeredProto->EffectImplicitTargetA[i], spellTriggeredProto->EffectImplicitTargetB[i]) &&
!IsPositiveEffect(spellTriggeredProto, SpellEffectIndex(i)))
return false;
}