Merge pull request #283 from KayenEQ/Development

Mez spells will no longer attempt memblur each tic, just on initial cast...
This commit is contained in:
Michael Cook (mackal) 2014-11-08 02:21:32 -05:00
commit 19e6a6909f
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;