mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11577] Spell effects with IsExplicitPositiveTarget always positive.
This fix for example spell 1008 buff state.
This commit is contained in:
parent
9e83454a23
commit
c462ee5834
2 changed files with 7 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue