druid caster form

This commit is contained in:
Yunfan Li
2023-09-05 22:11:04 +08:00
parent e69eccf071
commit 9ad8274fe8
5 changed files with 20 additions and 10 deletions

View File

@@ -2206,8 +2206,15 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell,
case SPELL_FAILED_MOVING:
case SPELL_FAILED_TRY_AGAIN:
case SPELL_CAST_OK:
case SPELL_FAILED_NOT_SHAPESHIFT:
return true;
default:
// if (!sPlayerbotAIConfig->logInGroupOnly || bot->GetGroup()) {
// if (result != SPELL_FAILED_NOT_READY && result != SPELL_CAST_OK) {
// LOG_DEBUG("playerbots", "CanCastSpell Check Failed. - target name: {}, spellid: {}, bot name: {}, result: {}",
// target->GetName(), spellid, bot->GetName(), result);
// }
// }
return false;
}
}