mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[Cleanup] Remove extraneous check for NegateAttacks in SE_NegateAttacks (#3228)
# Notes - We checked both, we only need to check one.
This commit is contained in:
parent
66cadd599b
commit
1f29a40e6d
@ -3201,8 +3201,13 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
|
|||||||
|
|
||||||
case SE_NegateAttacks:
|
case SE_NegateAttacks:
|
||||||
{
|
{
|
||||||
if (!new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_EXISTS] ||
|
if (
|
||||||
((new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_EXISTS] && new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_MAX_DMG_ABSORB_PER_HIT]) && (new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_MAX_DMG_ABSORB_PER_HIT] < max_value))){
|
!new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_EXISTS] ||
|
||||||
|
(
|
||||||
|
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_MAX_DMG_ABSORB_PER_HIT] &&
|
||||||
|
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_MAX_DMG_ABSORB_PER_HIT] < max_value
|
||||||
|
)
|
||||||
|
) {
|
||||||
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_EXISTS] = 1;
|
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_EXISTS] = 1;
|
||||||
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_BUFFSLOT] = buffslot;
|
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_BUFFSLOT] = buffslot;
|
||||||
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_MAX_DMG_ABSORB_PER_HIT] = max_value;
|
new_bonus->NegateAttacks[SBIndex::NEGATE_ATK_MAX_DMG_ABSORB_PER_HIT] = max_value;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user