Пример #1
0
 private void UpdateStats(Character character)
 {
     if (StatOne != null)
     {
         StatOne.BoostStat(character);
         StatTwo.ReduceStat(character);
     }
     if (StatTwo != null)
     {
         StatTwo.BoostStat(character);
         StatTwo.ReduceStat(character);
     }
 }
 public override void PerformSideEffect(Character target)
 {
     if (CanPerformSideEffect(target) && IsSideEffect)
     {
         if (StatOne != null)
         {
             StatOne.BoostStat(target);
             StatOne.ReduceStat(target);
         }
         if (StatTwo != null)
         {
             StatTwo.BoostStat(target);
             StatTwo.ReduceStat(target);
         }
     }
 }
 public override void PerformMove(Character user, Character target)
 {
     if (CanUseMove(user, target) && !IsSideEffect)
     {
         if (StatOne != null)
         {
             StatOne.BoostStat(target);
             StatOne.ReduceStat(target);
         }
         if (StatTwo != null)
         {
             StatTwo.BoostStat(target);
             StatTwo.ReduceStat(target);
         }
     }
 }