mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
changed a comment of the early return check
This commit is contained in:
parent
41b6e70857
commit
913039845d
@ -3498,7 +3498,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
|
||||
// return false;
|
||||
|
||||
|
||||
// check bot/target world-state just before preparing the actual spel
|
||||
// check bot/target world-state just before preparing the actual spell
|
||||
Unit* unitTarget = targets.GetUnitTarget();
|
||||
if (!bot->IsInWorld() || bot->IsDuringRemoveFromWorld() ||
|
||||
(unitTarget && (!unitTarget->IsInWorld() || unitTarget->IsDuringRemoveFromWorld())))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user