示例#1
0
        public override async Task ExecuteArmed(ServerBattle battle, Say e)
        {
            if (map != null)
            {
                await battle.SwitchMap(map.InternalName);

                await battle.SayBattle("changing map to " + map.InternalName);
            }
        }
 public override async Task ExecuteArmed(ServerBattle battle, Say e)
 {
     if (map != null)
     {
         await battle.SwitchMap(map.InternalName);
         await battle.SayBattle("changing map to " + map.InternalName);
     }
     
 }
示例#3
0
        public override async Task ExecuteArmed(ServerBattle battle, Say e)
        {
            if (Map != null)
            {
                await battle.SwitchMap(Map.InternalName);

                await battle.SayBattle("Changing map to " + Map.InternalName);

                if (Map.MapSupportLevel < MapSupportLevel.Supported)
                {
                    await battle.SayBattle($"This map is not officially supported!");
                }
                if (alternativeMap != null)
                {
                    await battle.SayBattle($"Did you mean {alternativeMap.InternalName} {GlobalConst.BaseSiteUrl}/Maps/Detail/{alternativeMap.ResourceID}?");
                }
            }
        }