コード例 #1
0
 override public void OnEffectPlay(HealthAndStatuses caster, HealthAndStatuses casterOpponent, int power = 0)
 {
     casterOpponent.TakeDamage(damage, caster);
     if (casterOpponent.currentHealth <= 0)
     {
         caster.IncreaseMaximumHealth(additionalHealth);
     }
 }
コード例 #2
0
 override public void OnEffectPlay(HealthAndStatuses caster, HealthAndStatuses casterOpponent, int power = 0)
 {
     if (dealDamageToStatusOwner)
     {
         caster.TakeDamage(power * damagePerStack);
     }
     else
     {
         casterOpponent.TakeDamage(power * damagePerStack);
     }
 }
コード例 #3
0
 override public void OnEffectPlay(HealthAndStatuses caster, HealthAndStatuses casterOpponent, int power = 0)
 {
     if (dealDamageToCaster)
     {
         caster.TakeDamage(caster.armor * damagePerArmor, caster);
     }
     else
     {
         casterOpponent.TakeDamage(caster.armor * damagePerArmor, caster);
     }
 }