Esempio n. 1
0
//		public override void AttackFriend(Character attackedCharacter, int damage) => ParentCharacter.Heal(attackedCharacter, damage);
        public override void Awake()
        {
            ParentCharacter.CanAttackAllies = true;
            ParentCharacter.BasicAttack     = character =>
            {
                if (character.Owner == ParentCharacter.Owner)
                {
                    ParentCharacter.Heal(character, ParentCharacter.AttackPoints.Value);
                }
                else
                {
                    ParentCharacter.DefaultBasicAttack(character);
                }
            };
        }
Esempio n. 2
0
        public ZeroGravity() : base(AbilityType.Passive, "Zero Gravity")
        {
            OnAwake += () =>
            {
                ParentCharacter.CanAttackAllies = true;
                ParentCharacter.BasicAttack     = character =>
                {
                    if (character.IsEnemyFor(Owner))
                    {
                        ParentCharacter.DefaultBasicAttack(character);
                    }
                    AddEffect(character);

                    ParentCharacter.HasUsedBasicAttackInPhaseBefore = true;
                };
            };
        }
Esempio n. 3
0
 public NaturesBeauty() : base(AbilityType.Passive, "Nature's Beauty")
 {
     OnAwake += () =>
     {
         ParentCharacter.CanAttackAllies = true;
         ParentCharacter.BasicAttack     = character =>
         {
             if (character.Owner == ParentCharacter.Owner)
             {
                 ParentCharacter.Heal(character, ParentCharacter.AttackPoints.Value);
                 ParentCharacter.HasUsedBasicAttackInPhaseBefore = true;
                 if (ParentCharacter.HasFreeAttackUntilEndOfTheTurn)
                 {
                     ParentCharacter.HasFreeAttackUntilEndOfTheTurn = false;
                 }
             }
             else
             {
                 ParentCharacter.DefaultBasicAttack(character);
             }
         };
     };
 }