mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[9226] Fixed a bug with applying spells 1784,5215,24450 and ranks as debuff.
All non generic spells expected to be cancellable and part of buff abilities. (based on commit 7f5310b from insider42/mangos). Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
f706842ab8
commit
4e6befc43d
2 changed files with 4 additions and 3 deletions
|
|
@ -590,8 +590,9 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
|
||||||
break;
|
break;
|
||||||
case SPELL_AURA_MOD_DECREASE_SPEED: // used in positive spells also
|
case SPELL_AURA_MOD_DECREASE_SPEED: // used in positive spells also
|
||||||
// part of positive spell if casted at self
|
// part of positive spell if casted at self
|
||||||
if (spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF ||
|
if ((spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF ||
|
||||||
spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF2)
|
spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF2) &&
|
||||||
|
spellproto->SpellFamilyName == SPELLFAMILY_GENERIC)
|
||||||
return false;
|
return false;
|
||||||
// but not this if this first effect (don't found batter check)
|
// but not this if this first effect (don't found batter check)
|
||||||
if(spellproto->Attributes & 0x4000000 && effIndex==0)
|
if(spellproto->Attributes & 0x4000000 && effIndex==0)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9225"
|
#define REVISION_NR "9226"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue