From 41b6e7085771ca7e3eb4aaced3d3334fa2fafe87 Mon Sep 17 00:00:00 2001 From: bash Date: Thu, 9 Oct 2025 01:45:04 +0200 Subject: [PATCH] changed a comment of the early return check --- src/PlayerbotAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 395a18eb..b19f4f2a 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -3402,7 +3402,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget) 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() || (target && (!target->IsInWorld() || target->IsDuringRemoveFromWorld()))) {