Core/Commands: Allow GMs to enter water while .gm fly is on
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace Game.Entities
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SetCanTransitionBetweenSwimAndFly(bool enable)
|
||||
public bool SetCanTransitionBetweenSwimAndFly(bool enable)
|
||||
{
|
||||
if (!IsTypeId(TypeId.Player))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user