mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +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)
|
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])
|
switch(spellproto->Effect[effIndex])
|
||||||
{
|
{
|
||||||
case SPELL_EFFECT_DUMMY:
|
case SPELL_EFFECT_DUMMY:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11576"
|
#define REVISION_NR "11577"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue