mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Spells: SPELL_AURA_MOD_HEALTH_REGEN_PERCENT should be negative if TargetType is enemy and Basepoints are negative (#24902)
This commit is contained in:
@@ -3662,6 +3662,10 @@ bool _isPositiveEffectImpl(SpellInfo const* spellInfo, uint8 effIndex, std::unor
|
||||
if (!_isPositiveTarget(spellInfo, effIndex) && bp > 0)
|
||||
return false;
|
||||
break;
|
||||
case SPELL_AURA_MOD_HEALTH_REGEN_PERCENT: // check targets and basepoints (target enemy and negative bp -> negative)
|
||||
if (!_isPositiveTarget(spellInfo, effIndex) && bp < 0)
|
||||
return false;
|
||||
break;
|
||||
case SPELL_AURA_ADD_TARGET_TRIGGER:
|
||||
return true;
|
||||
case SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE:
|
||||
|
||||
Reference in New Issue
Block a user