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

This commit is contained in:
hondacrx
2018-04-06 14:12:32 -04:00
parent f44cee9872
commit b06140607b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -105,9 +105,15 @@ namespace Game.Chat
string arg = args.NextString().ToLower();
if (arg == "on")
{
target.SetCanFly(true);
target.SetCanTransitionBetweenSwimAndFly(true);
}
else if (arg == "off")
{
target.SetCanFly(false);
target.SetCanTransitionBetweenSwimAndFly(false);
}
else
{
handler.SendSysMessage(CypherStrings.UseBol);
+1 -1
View File
@@ -263,7 +263,7 @@ namespace Game.Entities
return true;
}
bool SetCanTransitionBetweenSwimAndFly(bool enable)
public bool SetCanTransitionBetweenSwimAndFly(bool enable)
{
if (!IsTypeId(TypeId.Player))
return false;