Fix for player hp updates not matching between client and server

This commit is contained in:
Uleat committed 2020-01-28 21:24:14 -05:00
1 parent c82d08cf11
commit 92d32feb0d
4 files changed
+22 -1

No files matched your search

+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))