NPCBots: Add bonus damage calculations for shaman spells (#34)

* Add bonus damage calculations for shaman spells

* Refactor bonus damage calculations for shaman AI
This commit is contained in:
Dinkledork
2026-05-23 00:53:23 -06:00
committed by GitHub
parent 2797aaecf3
commit 18d740453f

View File

@@ -1510,6 +1510,12 @@ public:
//Call of Flame (part 2): 6% bonus damage for Lava burst //Call of Flame (part 2): 6% bonus damage for Lava burst
if (lvl >= 15 && spellId == GetSpell(LAVA_BURST_1)) if (lvl >= 15 && spellId == GetSpell(LAVA_BURST_1))
pctbonus += 0.06f; pctbonus += 0.06f;
//Glyph of Lightning Bolt: 4% bonus damage for Lightning Bolt
if ((GetSpec() == BOT_SPEC_SHAMAN_ELEMENTAL) && lvl >= 15 && spellId == GetSpell(LIGHTNING_BOLT_1))
pctbonus += 0.04f;
//Glyph of Lava: 10% bonus damage for Lava Burst
if ((GetSpec() == BOT_SPEC_SHAMAN_ELEMENTAL) && lvl >= 66 && spellId == GetSpell(LAVA_BURST_1))
pctbonus += 0.10f;
//Storm, Earth and fire (part 3): 60% bonus damage for Flame Shock (periodic damage in fact but who cares?) //Storm, Earth and fire (part 3): 60% bonus damage for Flame Shock (periodic damage in fact but who cares?)
if ((GetSpec() == BOT_SPEC_SHAMAN_ELEMENTAL) && lvl >= 40 && spellId == GetSpell(FLAME_SHOCK_1)) if ((GetSpec() == BOT_SPEC_SHAMAN_ELEMENTAL) && lvl >= 40 && spellId == GetSpell(FLAME_SHOCK_1))
pctbonus += 0.6f; pctbonus += 0.6f;