Fix for player hp updates not matching between client and server

This commit is contained in:
Uleat
2020-01-28 21:24:14 -05:00
parent c82d08cf11
commit 92d32feb0d
4 changed files with 22 additions and 1 deletions
+3
View File
@@ -286,6 +286,9 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
dmg = -dmg;
}
// hack fix for client health not reflecting server value
last_hp = 0;
//do any AAs apply to these spells?
if(dmg < 0) {
if (!PassCastRestriction(false, spells[spell_id].base2[i], true))