mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user