[Feature] Add SE_IncreaseArchery and rules to tune archery (#4335)

* [Feature] Add SE_IncreaseArchery and rules to tune archery

* Adjustments per comments, also added to the tune system.

* Update bonuses.cpp

---------

Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
Fryguy
2024-05-26 08:37:23 -04:00
committed by GitHub
parent 2df5f3f55a
commit 87c207e862
7 changed files with 30 additions and 1 deletions
+12
View File
@@ -2235,6 +2235,12 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
break;
}
case SE_IncreaseArchery:
{
new_bonus->increase_archery += effect_value;
break;
}
case SE_TotalHP:
{
new_bonus->FlatMaxHPChange += effect_value;
@@ -4533,6 +4539,12 @@ void Mob::NegateSpellEffectBonuses(uint16 spell_id)
if (negate_itembonus) { itembonuses.inhibitmelee = effect_value; }
break;
case SE_IncreaseArchery:
if (negate_spellbonus) { spellbonuses.increase_archery = effect_value; }
if (negate_aabonus) { aabonuses.increase_archery = effect_value; }
if (negate_itembonus) { itembonuses.increase_archery = effect_value; }
break;
case SE_TotalHP:
if (negate_spellbonus) { spellbonuses.FlatMaxHPChange = effect_value; }
if (negate_aabonus) { aabonuses.FlatMaxHPChange = effect_value; }