18 lines
433 B
C#
18 lines
433 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BlockEffect : IBattleEffect
|
|
{
|
|
private BattleParticipant target;
|
|
private int amount;
|
|
|
|
public BlockEffect(BattleParticipant target, int amount) {
|
|
this.target = target;
|
|
this.amount = amount;
|
|
}
|
|
|
|
public void Apply(IBattleEffectResolver resolver) {
|
|
resolver.AddBlock(this.target, this.amount);
|
|
}
|
|
}
|