mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[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:
parent
e962ad3a35
commit
752e6c89f3
@ -260,8 +260,14 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
caster->ResourceTap(-dmg, spell_id);
|
||||
}
|
||||
|
||||
dmg = -dmg;
|
||||
Damage(caster, dmg, spell_id, spell.skill, false, buffslot, false);
|
||||
if (dmg <= 0) {
|
||||
dmg = -dmg;
|
||||
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) {
|
||||
//healing spell...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user