[Spells] Allow damage spells to heal if quest based spell mitigation is over 100 pct. (#1978)

* heal from nuke

* Update mob.cpp
This commit is contained in:
KayenEQ 2022-02-08 09:03:31 -05:00 committed by GitHub
parent e962ad3a35
commit 752e6c89f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,9 +260,15 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
caster->ResourceTap(-dmg, spell_id); caster->ResourceTap(-dmg, spell_id);
} }
if (dmg <= 0) {
dmg = -dmg; dmg = -dmg;
Damage(caster, dmg, spell_id, spell.skill, false, buffslot, false); Damage(caster, dmg, spell_id, spell.skill, false, buffslot, false);
} }
//handles custom situation where quest function mitigation put high enough to allow damage to heal.
else {
HealDamage(dmg, caster);
}
}
else if(dmg > 0) { else if(dmg > 0) {
//healing spell... //healing spell...