Пример #1
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     squadron.AtkPowers.AttackPower.CriticalHit =
         IsActive()
         &&
         MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()) ? EffectValue + ComboEffectValue : ZERO;
 }
Пример #2
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     squadron.SabPowers.SabotagePower.FullDefense =
         IsActive()
         &&
         MathConts.ProcessChance(ChanceValue + ComboEffectValue, squadron.Inspiration, GetName()) ? squadron.SabPowers.SabotagePower.Total : ZERO;
 }
Пример #3
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     squadron.SabPowers.SabotagePower.DecreaseEnemyDivergeDamage =
         IsActive()
         &&
         MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()) ? EffectValue + ComboEffectValue : ZERO;
 }
Пример #4
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     squadron.AtkPowers.AttackPower.DoubleStrike =
         IsActive()
         &&
         MathConts.ProcessChance(ChanceValue + ComboEffectValue, squadron.Inspiration, GetName());
 }
Пример #5
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     if (IsActive() && MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()))
     {
         squadron.AtkPowers.AttackPower.OnTurnBonusAttack = MathConts.GetPercentageOf(squadron.AtkPowers.AttackPower.Total, EffectValue + ComboEffectValue);
         squadron.DefPowers.AttackPower.OnTurnBonusAttack = MathConts.GetPercentageOf(squadron.DefPowers.AttackPower.Total, EffectValue + ComboEffectValue);
         squadron.SabPowers.AttackPower.OnTurnBonusAttack = MathConts.GetPercentageOf(squadron.SabPowers.SabotagePower.Total / 2, EffectValue + ComboEffectValue);
     }
 }
Пример #6
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     if (IsActive() && !EffectApplied && MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()))
     {
         squadron.AtkPowers.AttackPower.PassiveDamage =
             MathConts.GetPercentageOf(squadron.AtkPowers.AttackPower.Total, EffectValue + ComboEffectValue);
         EffectApplied = true;
     }
 }
Пример #7
0
 public override void ApplyPrimaryEffect(Squadron squadron)
 {
     if (IsActive() && !EffectApplied && squadron.SabPowers.HealthPower.CurrentHp == 0)
     {
         if (MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()))
         {
             squadron.SabPowers.HealthPower.Revive(MathConts.GetPercentageOf(squadron.SabPowers.HealthPower.MaxHp, (EffectValue + ComboEffectValue)));
         }
         EffectApplied = true;
     }
 }
Пример #8
0
 public override void ApplyPrimaryEffect(Squadron squad)
 {
     squad.DefPowers.DefensePower.StopPassiveDamage =
         IsActive()
         &&
         MathConts.ProcessChance(ChanceValue, squad.Inspiration, GetName())
             ?
         (EffectValue + ComboEffectValue)
             :
         ZERO;
 }