Page 1 of 1

Magic Trick : Using exalted abilities

PostPosted: 28 Jul 2010, 11:35
by Yanna
Hi !

Maybe you have already figured it out, but you can code exalted abilities !

Add a custom function :

Code: Select all
function IsExalted()
-- ////////////////////////////////////////////////////////////////////////////////////////
-- return true if there is only one attacking creature, otherwise false
-- ////////////////////////////////////////////////////////////////////////////////////////
        Object():GetFilter():Clear()
        Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
        Object():GetFilter():SetController( Object():GetController() )
        Object():GetFilter():AddExtra( FILTER_EXTRA_CREATURE_ATTACKING )
        local LNG_ATTACKERS = (Object():GetFilter():Count())
        if ( LNG_ATTACKERS == 1 ) then
          return true
        else
          return false
        end
end
Then on the cards that make use of exalted abilities :

Code: Select all

    <TRIGGERED_ABILITY layer="7c" tag="QASALI_PRIDEMAGE_RULE_1" >

      <TRIGGER value="ATTACKING">
       return IsExalted()
      </TRIGGER>

      <EFFECT>
       PlusOnePlusOne()
      </EFFECT>

      <DURATION>
        return UntilEndOfTurn()
      </DURATION>

    </TRIGGERED_ABILITY>

It's been bugging me for a while but now works correctly ^^ New release will include the Qasali Pridemage in an interesting GW deck :)