mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11581] In IsPositiveEffect triggered case check only existed effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
8251b3febc
commit
6dd7f784cf
2 changed files with 3 additions and 2 deletions
|
|
@ -747,7 +747,8 @@ 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[i], spellTriggeredProto->EffectImplicitTargetB[i]) &&
|
||||
if (spellTriggeredProto->Effect[i] &&
|
||||
IsPositiveTarget(spellTriggeredProto->EffectImplicitTargetA[i], spellTriggeredProto->EffectImplicitTargetB[i]) &&
|
||||
!IsPositiveEffect(spellTriggeredProto, SpellEffectIndex(i)))
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue