Created
July 27, 2011 23:11
-
-
Save nelsonlaquet/1110565 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MurasaPyromancer : CreatureCard, IAlly, IEventHandler<CreaterEntersBattlefield> | |
{ | |
public MurasaPyromancer() | |
{ | |
Name = "Murasa Pyromancer"; | |
ManaCost = ManaCost.Create(red: 2, collorless: 4); | |
Description = "Whenever Murasa Pyromancer or another Ally enters the battlefield under your control, you may have Murasa Pyromancer deal damage to target creature equal to the number of Allies you control."; | |
} | |
public void Handle(CreaterEntersBattlefield @event) | |
{ | |
var allyCount = Owner.CreaturesUnderControl.Count(c => typeof(IAlly).IsAssignableFrom(c)); | |
var tagetCreature = Engine.TargetCreature(); | |
targetCreature.TakeDamage(allyCount); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment