21 lines
747 B
C#
21 lines
747 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GraniteDefenseMCard : MonsterCard
|
|
{
|
|
public GraniteDefenseMCard(BattleParticipant owner)
|
|
: base(owner, MCardId.GolemBerserk, "Granite Defense", 3, CardType.Skill,
|
|
"Block 5 damage on other allies.") {
|
|
}
|
|
|
|
public override IEnumerator Use(IBattleEffectApplier effectApplier, MonsterViewpoint monsterViewpoint) {
|
|
yield return new WaitForSeconds(0.6f);
|
|
foreach (BattleMonster monster in monsterViewpoint.Monsters) {
|
|
if (monster != this.owner) {
|
|
effectApplier.Apply(new BlockEffect(monster, 5));
|
|
yield return new WaitForSeconds(0.3f);
|
|
}
|
|
}
|
|
}
|
|
}
|