23 lines
601 B
C#
23 lines
601 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class MassDamageEffect : IBattleEffect
|
|
{
|
|
private TeamChoice team;
|
|
private int amount;
|
|
private int amountDealt;
|
|
|
|
public MassDamageEffect(TeamChoice team, int amount) {
|
|
this.team = team;
|
|
this.amount = amount;
|
|
}
|
|
|
|
public void Apply(IBattleEffectResolver resolver) {
|
|
this.amountDealt = resolver.DealMassDamage(this);
|
|
}
|
|
|
|
public TeamChoice Team {get => this.team;}
|
|
public int Amount {get => this.amount;}
|
|
public int AmountDealt {get => this.amountDealt;}
|
|
}
|