[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:
Insider 2010-01-21 07:30:43 +03:00 committed by VladimirMangos
parent f706842ab8
commit 4e6befc43d
2 changed files with 4 additions and 3 deletions

View file

@ -590,8 +590,9 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
break;
case SPELL_AURA_MOD_DECREASE_SPEED: // used in positive spells also
// part of positive spell if casted at self
if (spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF ||
spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF2)
if ((spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF ||
spellproto->EffectImplicitTargetA[effIndex] == TARGET_SELF2) &&
spellproto->SpellFamilyName == SPELLFAMILY_GENERIC)
return false;
// but not this if this first effect (don't found batter check)
if(spellproto->Attributes & 0x4000000 && effIndex==0)