using System.Collections; using System.Collections.Generic; using UnityEngine; public class WhirlwindMCard : MonsterCard { public WhirlwindMCard(BattleParticipant owner) : base(owner, MCardId.Whirlwind, "Whirlwind", 4, CardType.Attack, "Rotate enemies right. Deal 3 damage to all enemies.") { } public override IEnumerator Use(IBattleEffectApplier effectApplier, MonsterViewpoint monsterViewpoint) { RotateEffect rotateEffect = new RotateEffect(TeamChoice.Heroes, +1); effectApplier.Apply(rotateEffect); yield return new WaitForSeconds(1f); MassDamageEffect damageEffect = new MassDamageEffect(TeamChoice.Heroes, 3); effectApplier.Apply(damageEffect); } }