mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
changed a comment of the early return check
This commit is contained in:
@@ -3498,7 +3498,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
|
|||||||
// return false;
|
// 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();
|
Unit* unitTarget = targets.GetUnitTarget();
|
||||||
if (!bot->IsInWorld() || bot->IsDuringRemoveFromWorld() ||
|
if (!bot->IsInWorld() || bot->IsDuringRemoveFromWorld() ||
|
||||||
(unitTarget && (!unitTarget->IsInWorld() || unitTarget->IsDuringRemoveFromWorld())))
|
(unitTarget && (!unitTarget->IsInWorld() || unitTarget->IsDuringRemoveFromWorld())))
|
||||||
|
|||||||
Reference in New Issue
Block a user