public void DuringCheckForResourceIcon(ICheckForResourceIcon state) { if (state.ResourceIcon != Sphere.Spirit) { return; } var attachment = state.Game.GetCardInPlay <IAttachmentInPlay>(source.Id); if (attachment == null || attachment.AttachedTo == null) { return; } var resourceful = attachment.AttachedTo.Card as IResourcefulCard; if (resourceful == null || resourceful.Title != "Aragorn") { return; } if (state.Target.Card.Id != source.Id) { return; } state.HasResourceIcon = true; }
public virtual void DuringCheckForResourceIcon(ICheckForResourceIcon state) { if (state.Target.Card.Id != this.id) { return; } foreach (var effect in text.Effects.OfType <IDuringCheckForResourceIcon>()) { effect.DuringCheckForResourceIcon(state); } }
public void DuringCheckForResourceIcon(ICheckForResourceIcon state) { if (state.ResourceIcon != Sphere.Spirit) return; var attachment = state.Game.GetCardInPlay<IAttachmentInPlay>(source.Id); if (attachment == null || attachment.AttachedTo == null) return; var resourceful = attachment.AttachedTo.Card as IResourcefulCard; if (resourceful == null || resourceful.Title != "Aragorn") return; if (state.Target.Card.Id != source.Id) return; state.HasResourceIcon = true; }