Skip to content

Commit

Permalink
NPCBots: Mage: Allow using Frostbolt in Fire spec on targets immune t…
Browse files Browse the repository at this point in the history
…o fire damage
  • Loading branch information
trickerer committed Dec 3, 2024
1 parent 8751750 commit d565802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/AI/NpcBots/bot_mage_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class mage_bot : public CreatureScript
return;
}

if (IsSpellReady(FROSTBOLT_1, diff) && can_do_frost && GetSpec() != BOT_SPEC_MAGE_FIRE && dist < CalcSpellMaxRange(FROSTBOLT_1))
if (IsSpellReady(FROSTBOLT_1, diff) && can_do_frost && (GetSpec() != BOT_SPEC_MAGE_FIRE || !can_do_fire) && dist < CalcSpellMaxRange(FROSTBOLT_1))
{
if (doCast(mytar, GetSpell(FROSTBOLT_1)))
return;
Expand Down

0 comments on commit d565802

Please sign in to comment.