Files
mod-playerbots/src/strategy/actions/TrainerAction.cpp
EricksOliveira 27e3b802b7 Fix: Prevents bots from learning spells twice (#1211)
* Fix: Prevents bots from learning spells twice

Added bot->HasSpell() check before calling bot->learnSpell() to ensure the bot does not learn spells it already has.

This avoids redundant behavior, possible unnecessary logging, and inconsistencies in learning spells trained with SPELL_EFFECT_LEARN_SPELL.

* Possible fix
2025-04-18 23:04:35 +02:00

6.9 KiB