mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 23:51:28 +00:00
SE_NegateAttacks buff stacking optimized.
This commit is contained in:
parent
8ad9ad578c
commit
f28a392f71
@ -2291,7 +2291,8 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* ne
|
|||||||
|
|
||||||
case SE_NegateAttacks:
|
case SE_NegateAttacks:
|
||||||
{
|
{
|
||||||
if (!newbon->NegateAttacks[0]){
|
if (!newbon->NegateAttacks[0] ||
|
||||||
|
((newbon->NegateAttacks[0] && newbon->NegateAttacks[2]) && (newbon->NegateAttacks[2] < max))){
|
||||||
newbon->NegateAttacks[0] = 1;
|
newbon->NegateAttacks[0] = 1;
|
||||||
newbon->NegateAttacks[1] = buffslot;
|
newbon->NegateAttacks[1] = buffslot;
|
||||||
newbon->NegateAttacks[2] = max;
|
newbon->NegateAttacks[2] = max;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user