mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
miscs(spell): paladin, rogue poison, shaman totem
This commit is contained in:
@@ -137,15 +137,16 @@ CastEnchantItemAction::CastEnchantItemAction(PlayerbotAI* botAI, std::string con
|
||||
|
||||
bool CastEnchantItemAction::isPossible()
|
||||
{
|
||||
if (!CastSpellAction::isPossible()) {
|
||||
// if (!CastSpellAction::isPossible()) {
|
||||
|
||||
botAI->TellMasterNoFacing("Impossible: " + spell);
|
||||
return false;
|
||||
}
|
||||
// botAI->TellMasterNoFacing("Impossible: " + spell);
|
||||
// return false;
|
||||
// }
|
||||
|
||||
uint32 spellId = AI_VALUE2(uint32, "spell id", spell);
|
||||
|
||||
bool ok = AI_VALUE2(Item*, "item for spell", spellId);
|
||||
Item* item = 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