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

View File

@@ -100,8 +100,8 @@ public:
}
else
{
canFly = handler->GetSession()->GetPlayer()->CanFly();
target->SetCanFly(!canFly);
canFly = !handler->GetSession()->GetPlayer()->CanFly();
target->SetCanFly(canFly);
}
handler->PSendSysMessage(LANG_COMMAND_FLYMODE_STATUS, handler->GetNameLink(target), canFly ? "on" : "off");