mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
CanCastSpell
This commit is contained in:
parent
a24e60f03d
commit
0ea649340e
@ -2207,6 +2207,7 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell,
|
|||||||
case SPELL_FAILED_TRY_AGAIN:
|
case SPELL_FAILED_TRY_AGAIN:
|
||||||
case SPELL_CAST_OK:
|
case SPELL_CAST_OK:
|
||||||
case SPELL_FAILED_NOT_SHAPESHIFT:
|
case SPELL_FAILED_NOT_SHAPESHIFT:
|
||||||
|
case SPELL_FAILED_OUT_OF_RANGE:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
if (!sPlayerbotAIConfig->logInGroupOnly || (bot->GetGroup() && HasRealPlayerMaster())) {
|
if (!sPlayerbotAIConfig->logInGroupOnly || (bot->GetGroup() && HasRealPlayerMaster())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user