SCards dealDamage(int X) { return(this._game.cards .select(SFilter.located(SPlace.board), SFilter.otherThen(this)) .targetOneCard(this, String.Format("Deal {0} damage to any other unit", X)) .damage(X, this)); }
public void trigger(STType triggerType, SCard source = null, int param = 0) { if (containsTrigger(triggerType)) { _triggers[triggerType](this, source, param); } // then show it to someone // or hide from someone viewAction(triggerType, source, param); // if a trigger from range 20..100 // then its a trigger, what will trigger // other cards with %OtherTrigger% case int triggerNum = (int)triggerType; if (triggerNum < 20 || triggerNum > 100) { return; } foreach (SCard otherCard in _game.cards.select(SFilter.inGame(), SFilter.otherThen(this)).cards) { otherCard.trigger((STType)(triggerNum + 100), this); } }