From 4446a1ed08f17a075cdb75d2a08de98414257c8d Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sat, 8 Nov 2014 02:07:05 -0500 Subject: [PATCH] Mez spells will no longer attempt memblur each tic, just on initial cast. reverted change to calcmaxhp due to potential overflow issues. --- zone/mob.cpp | 2 +- zone/spell_effects.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index e945d0fef..5a56a2180 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -608,7 +608,7 @@ int32 Mob::CalcMaxMana() { int32 Mob::CalcMaxHP() { max_hp = (base_hp + itembonuses.HP + spellbonuses.HP); - max_hp += max_hp * (aabonuses.MaxHPChange + spellbonuses.MaxHPChange + itembonuses.MaxHPChange) / 10000; + max_hp += max_hp * ((aabonuses.MaxHPChange + spellbonuses.MaxHPChange + itembonuses.MaxHPChange) / 10000.0f); return max_hp; } diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index 8a1285b1e..924af5555 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -3558,6 +3558,8 @@ void Mob::DoBuffTic(uint16 spell_id, int slot, uint32 ticsremaining, uint8 caste case SE_WipeHateList: { + if (IsMezSpell(spell_id)) + break; int wipechance = spells[spell_id].base[i]; int bonus = 0;