[Cleanup] SE_StrikeThrough and SE_StrikeThrough2 are the same in bonuses.cpp (#3223)

# Notes
- These were the same code duplicated.
This commit is contained in:
Alex King 2023-04-05 11:05:59 -04:00 committed by GitHub
parent efbeb2dbb7
commit 73b11c5036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5313,11 +5313,6 @@ void Mob::NegateSpellEffectBonuses(uint16 spell_id)
break;
case SE_StrikeThrough:
if (negate_spellbonus) { spellbonuses.StrikeThrough = effect_value; }
if (negate_aabonus) { aabonuses.StrikeThrough = effect_value; }
if (negate_itembonus) { itembonuses.StrikeThrough = effect_value; }
break;
case SE_StrikeThrough2:
if (negate_spellbonus) { spellbonuses.StrikeThrough = effect_value; }
if (negate_aabonus) { aabonuses.StrikeThrough = effect_value; }