Untitled
unknown
csharp
4 years ago
687 B
7
Indexable
public class AntAbility : Ability
{
public AntAbility() : base()
{
DefaultHP = 1;
DefaultAttack = 2;
}
public override void Fainted(Card card, int index)
{
base.Fainted(card, index);
var buffCard = card.Deck.GetRandomPriorCard(index);
if (buffCard != null)
{
card.Deck.Player.Game.OnAbilityEvent(this, card,
string.Format("Faint => Give a random friend +{0} attack and +{1} health", 2 * card.Level, card.Level));
buffCard.Buff(index, card.Level, 2 * card.Level);
}
}
}
Editor is loading...