changed a comment of the early return check

This commit is contained in:
bash
2025-10-09 01:45:04 +02:00
parent 7cf0ebe328
commit 41b6e70857

View File

@@ -3402,7 +3402,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
return false; return false;
} }
// early bot/target world-state check before spell creationg a spell, after pet // early return; bot/target world-state check
if (!bot->IsInWorld() || bot->IsDuringRemoveFromWorld() || if (!bot->IsInWorld() || bot->IsDuringRemoveFromWorld() ||
(target && (!target->IsInWorld() || target->IsDuringRemoveFromWorld()))) (target && (!target->IsInWorld() || target->IsDuringRemoveFromWorld())))
{ {