fix(Scripts/Commands): inverted display in chat for gm fly (#23222)

This commit is contained in:
killerwife
2025-10-13 13:05:03 +02:00
committed by GitHub
parent 53238a68d3
commit 8560c4825a
+2 -2
View File
@@ -100,8 +100,8 @@ public:
} }
else else
{ {
canFly = handler->GetSession()->GetPlayer()->CanFly(); canFly = !handler->GetSession()->GetPlayer()->CanFly();
target->SetCanFly(!canFly); target->SetCanFly(canFly);
} }
handler->PSendSysMessage(LANG_COMMAND_FLYMODE_STATUS, handler->GetNameLink(target), canFly ? "on" : "off"); handler->PSendSysMessage(LANG_COMMAND_FLYMODE_STATUS, handler->GetNameLink(target), canFly ? "on" : "off");