public static void StopWarriorScan()
 {
     LW_DeathEvent.Unsubscribe(onLW_Death);
     LW_DevirtEvent.Unsubscribe(onLW_Devirt);
     LW_FrontierEvent.Unsubscribe(onLW_Frontier);
     LW_HealEvent.Unsubscribe(onLW_Heal);
     LW_HurtEvent.Unsubscribe(onLW_Hurt);
     LW_MoveEvent.Unsubscribe(onLW_Move);
     LW_TranslationEvent.Unsubscribe(onLW_translation);
     LW_XanaficationEvent.Unsubscribe(onLW_Xanafication);
 }
示例#2
0
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "invalid warrior!");
                return;
            }

            if (!warrior.Statuses.Contains(LW_Status.VIRTUALIZED))
            {
                throw new CommandException(this, "Can't xanafy warrior!");
                return;
            }
            LW_XanaficationEvent.Call(warrior);
            Output(warrior.WarriorName + " xanafied.");
        }