public override void ApplyPrimaryEffect(Squadron squadron) { squadron.AtkPowers.AttackPower.CriticalHit = IsActive() && MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()) ? EffectValue + ComboEffectValue : ZERO; }
public override void ApplyPrimaryEffect(Squadron squadron) { squadron.SabPowers.SabotagePower.FullDefense = IsActive() && MathConts.ProcessChance(ChanceValue + ComboEffectValue, squadron.Inspiration, GetName()) ? squadron.SabPowers.SabotagePower.Total : ZERO; }
public override void ApplyPrimaryEffect(Squadron squadron) { squadron.SabPowers.SabotagePower.DecreaseEnemyDivergeDamage = IsActive() && MathConts.ProcessChance(ChanceValue, squadron.Inspiration, GetName()) ? EffectValue + ComboEffectValue : ZERO; }
public override void ApplyPrimaryEffect(Squadron squadron) { squadron.AtkPowers.AttackPower.DoubleStrike = IsActive() && MathConts.ProcessChance(ChanceValue + ComboEffectValue, squadron.Inspiration, GetName()); }
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); } }
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; } }
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; } }
public override void ApplyPrimaryEffect(Squadron squad) { squad.DefPowers.DefensePower.StopPassiveDamage = IsActive() && MathConts.ProcessChance(ChanceValue, squad.Inspiration, GetName()) ? (EffectValue + ComboEffectValue) : ZERO; }