24 lines
722 B
C#
24 lines
722 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class AcquireCardsEffect : IBattleEffect
|
|
{
|
|
private CardId[] cardIds;
|
|
private BattleZone zone;
|
|
private BattleParticipant participant;
|
|
|
|
public AcquireCardsEffect(CardId[] cardIds, BattleZone zone, BattleParticipant participant) {
|
|
this.cardIds = cardIds;
|
|
this.zone = zone;
|
|
this.participant = participant;
|
|
}
|
|
|
|
public void Apply(IBattleEffectResolver resolver) {
|
|
if (this.participant.IsHero()) {
|
|
resolver.AcquireHeroCards(this.cardIds, this.zone, (BattleHero) this.participant);
|
|
} else {
|
|
throw new System.NotImplementedException();
|
|
}
|
|
}
|
|
}
|