mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +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,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...
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user