mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Add Casting Restrictions to SE_CurrentHPOnce
This commit is contained in:
parent
835fbb81cb
commit
e7184f402d
@ -283,9 +283,13 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
|
|
||||||
//do any AAs apply to these spells?
|
//do any AAs apply to these spells?
|
||||||
if(dmg < 0) {
|
if(dmg < 0) {
|
||||||
|
if (!PassCastRestriction(false, spells[spell_id].base2[i], true))
|
||||||
|
break;
|
||||||
dmg = -dmg;
|
dmg = -dmg;
|
||||||
Damage(caster, dmg, spell_id, spell.skill, false, buffslot, false);
|
Damage(caster, dmg, spell_id, spell.skill, false, buffslot, false);
|
||||||
} else {
|
} else {
|
||||||
|
if (!PassCastRestriction(false, spells[spell_id].base2[i], true))
|
||||||
|
break;
|
||||||
HealDamage(dmg, caster);
|
HealDamage(dmg, caster);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user