Core/Commands: Allow GMs to enter water while .gm fly is on

This commit is contained in:
Shauren
2018-04-05 18:04:53 +02:00
parent 61bd5c1c23
commit 32563ef25b

View File

@@ -106,9 +106,15 @@ public:
WorldPacket data;
if (strncmp(args, "on", 3) == 0)
{
target->SetCanFly(true);
target->SetCanTransitionBetweenSwimAndFly(true);
}
else if (strncmp(args, "off", 4) == 0)
{
target->SetCanFly(false);
target->SetCanTransitionBetweenSwimAndFly(false);
}
else
{
handler->SendSysMessage(LANG_USE_BOL);