Page 1 of 1

Restoration Angel

PostPosted: 22 Oct 2012, 22:17
by Nargrimm
I've tried coding Restoration Angel and most of it is no problem as the basic functionalty is already there with Cloudshift. What I can't really find a way to work for is the non-Angel requirement. Does the engine allow for specific sub-types to be filtered out during the selection?
I have looked at a few cards which seemed similar in their target choosing but none of the ways they were coded seemed to work properly.

Does anyone have an idea how this could be implemented?
Maybe I'm just being stupid here.

Nargrimm

Re: Restoration Angel

PostPosted: 23 Oct 2012, 00:00
by RiiakShiNal
In the filter you set the sub-type as Angel then add an extra to the filter (FILTER_EXTRA_FLIP_SUB_TYPES). That will essentially make the filter choose anything but angels (choose non-angels).

Re: Restoration Angel

PostPosted: 23 Oct 2012, 06:10
by BlindWillow
Here's the target definition I use for her:

Code: Select all
    <TARGET_DEFINITION id="0">
    local filter = Object():GetFilter()
    filter:Clear()
    filter:AddCardType( CARD_TYPE_CREATURE )
    filter:AddSubType( CREATURE_TYPE_ANGEL )
    filter:AddExtra( FILTER_EXTRA_FLIP_SUB_TYPES )
    filter:SetController( EffectController() )
    filter:SetZone( ZONE_IN_PLAY )
    filter:SetHint( HINT_ALLIED, EffectController() )
    </TARGET_DEFINITION>

Re: Restoration Angel

PostPosted: 23 Oct 2012, 13:13
by pcastellazzi
You may find Restoration Angel and a few cards here. I try to keep the code updated and bug free as much as posible. If you have any problems please let me know.

Re: Restoration Angel

PostPosted: 29 Oct 2012, 22:28
by Nargrimm
Thanks for the advice everyone, worked like a charm.
And thanks for that list pcastellazzi, I was actually looking for a few of these cards.

Nargrimm