mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix(spell): paladin and dk aggro spell, warrior
This commit is contained in:
@@ -137,10 +137,16 @@ CastEnchantItemAction::CastEnchantItemAction(PlayerbotAI* botAI, std::string con
|
||||
|
||||
bool CastEnchantItemAction::isPossible()
|
||||
{
|
||||
if (!CastSpellAction::isPossible())
|
||||
if (!CastSpellAction::isPossible()) {
|
||||
|
||||
botAI->TellMasterNoFacing("Impossible: " + spell);
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32 spellId = AI_VALUE2(uint32, "spell id", spell);
|
||||
|
||||
bool ok = AI_VALUE2(Item*, "item for spell", spellId);
|
||||
botAI->TellMasterNoFacing("spell: " + spell + ", spell id: " + std::to_string(spellId) + " item for spell: " + std::to_string(ok));
|
||||
return spellId && AI_VALUE2(Item*, "item for spell", spellId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user