Exemplo n.º 1
0
        public void Update(Subject Subject)
        {
            Console.WriteLine("Trap Triggered");
            //TODO - create use skill command
            Subject.Unregister(this, false);

            CommandUseSkill Command = new CommandUseSkill(Skill, BattleController.Battlefield.GetField(x, y), Skill.TriggerBehaviour);

            BattleController.ExecuteCommand(Command);
        }
Exemplo n.º 2
0
        public void Update(Subject Subject)
        {
            if (((HealthStat)Subject).ActualHP > Skill.TriggerTreshold)
            {
                return;
            }

            /*if(WasActivated)
             * {
             *  return;
             * }
             *
             * WasActivated = true;*/
            Console.WriteLine("Passive Skill Triggered");
            Console.WriteLine(BattleController);
            Console.WriteLine(BattleController.Battlefield);
            Console.WriteLine(BattleController.Battlefield.GetField(SkillOwner));

            CommandUseSkill Command = new CommandUseSkill(Skill, BattleController.Battlefield.GetField(SkillOwner), Skill.TriggerBehaviour);

            BattleController.ExecuteCommand(Command);
        }