mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-10 14:22:26 +00:00
Mez spells will no longer attempt memblur each tic, just on initial cast.
reverted change to calcmaxhp due to potential overflow issues.
This commit is contained in:
parent
b4e4d94061
commit
4446a1ed08
@ -608,7 +608,7 @@ int32 Mob::CalcMaxMana() {
|
|||||||
|
|
||||||
int32 Mob::CalcMaxHP() {
|
int32 Mob::CalcMaxHP() {
|
||||||
max_hp = (base_hp + itembonuses.HP + spellbonuses.HP);
|
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;
|
return max_hp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3558,6 +3558,8 @@ void Mob::DoBuffTic(uint16 spell_id, int slot, uint32 ticsremaining, uint8 caste
|
|||||||
|
|
||||||
case SE_WipeHateList:
|
case SE_WipeHateList:
|
||||||
{
|
{
|
||||||
|
if (IsMezSpell(spell_id))
|
||||||
|
break;
|
||||||
|
|
||||||
int wipechance = spells[spell_id].base[i];
|
int wipechance = spells[spell_id].base[i];
|
||||||
int bonus = 0;
|
int bonus = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user