mixedcards/Assets/Battle/CardsMonsters/GraniteDefenseMCard.cs
henriquenakashima 03ca23d484 Create StatusUI
2020-09-20 22:45:42 -04:00

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);
}
}
}
}