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();
|
string arg = args.NextString().ToLower();
|
||||||
|
|
||||||
if (arg == "on")
|
if (arg == "on")
|
||||||
|
{
|
||||||
target.SetCanFly(true);
|
target.SetCanFly(true);
|
||||||
|
target.SetCanTransitionBetweenSwimAndFly(true);
|
||||||
|
}
|
||||||
else if (arg == "off")
|
else if (arg == "off")
|
||||||
|
{
|
||||||
target.SetCanFly(false);
|
target.SetCanFly(false);
|
||||||
|
target.SetCanTransitionBetweenSwimAndFly(false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
handler.SendSysMessage(CypherStrings.UseBol);
|
handler.SendSysMessage(CypherStrings.UseBol);
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ namespace Game.Entities
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SetCanTransitionBetweenSwimAndFly(bool enable)
|
public bool SetCanTransitionBetweenSwimAndFly(bool enable)
|
||||||
{
|
{
|
||||||
if (!IsTypeId(TypeId.Player))
|
if (!IsTypeId(TypeId.Player))
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user