mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11601] More limited way attempt fix spell 1008 and ranks
This commit is contained in:
parent
6833f4c564
commit
c5064a73b0
2 changed files with 4 additions and 3 deletions
|
|
@ -717,8 +717,9 @@ bool IsPositiveEffect(SpellEntry const *spellproto, SpellEffectIndex effIndex)
|
|||
return false;
|
||||
break;
|
||||
case SPELL_AURA_MOD_DAMAGE_TAKEN: // dependent from bas point sign (positive -> negative)
|
||||
if(spellproto->CalculateSimpleValue(effIndex) > 0)
|
||||
return false;
|
||||
if (spellproto->CalculateSimpleValue(effIndex) < 0)
|
||||
return true;
|
||||
// let check by target modes (for Amplify Magic cases/etc)
|
||||
break;
|
||||
case SPELL_AURA_MOD_SPELL_CRIT_CHANCE:
|
||||
case SPELL_AURA_MOD_INCREASE_HEALTH_PERCENT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue