Example #1
0
 /// <summary>
 /// 自身のこのターン受けた総ダメージ量*power(atk * toDamageRate * effectRate)のダメージ
 /// </summary>
 /// <param name="attacker">攻撃者</param>
 /// <param name="target">攻撃対象</param>
 /// <param name="effect">BattleActiveEffect</param>
 private void CounterAttack(BattleCharacter attacker, BattleCharacter target, BattleActiveEffect effect)
 {
     target.DamagedByElementAttack(attacker.HaveDamageThisTurn * attacker.GetToDamageRate(effect.EffectElement) * effect.RateOrValue, effect.EffectElement);
 }
Example #2
0
 private void Attack(BattleCharacter attacker, BattleCharacter target, BattleActiveEffect effect)
 {
     target.DamagedByElementAttack(attacker.Atk * attacker.GetToDamageRate(effect.EffectElement) * effect.RateOrValue, effect.EffectElement);
 }