mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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;
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue