Core/Spells: Fixed a silly typo in SpellInfo::_IsPositiveEffect.

Fixes some auras being displayed as debuffs while they should not. (Just see Invisibility #66)

Ref. #7912
This commit is contained in:
Warpten
2013-05-02 04:08:35 +03:00
parent b1e8c42259
commit 8dea73fc83

View File

@@ -2476,7 +2476,7 @@ bool SpellInfo::_IsPositiveEffect(uint8 effIndex, bool deep) const
continue;
// 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->Effects[i].TargetA.GetTarget(), spellTriggeredProto->Effects[i].TargetB.GetTarget()) && !spellTriggeredProto->_IsPositiveEffect(i, true))
if (!_IsPositiveTarget(spellTriggeredProto->Effects[i].TargetA.GetTarget(), spellTriggeredProto->Effects[i].TargetB.GetTarget()) && !spellTriggeredProto->_IsPositiveEffect(i, true))
return false;
}
}