Sneak attack
Posted: 27 Aug 2012, 13:44
Hello i'm new to this forum and after some reading decided to make a sneak a show legacy deck but im having some problems with the sneak attack i'm using a merge between the quicksilver code and the slave of bolas but its not working
- Code: Select all
<ACTIVATED_ABILITY filter_zone="ZONE_IN_PLAY">
<COST type="Mana" cost="{R}" />
<TARGET_DEFINITION id="0">local filter = Object():GetFilter() filter:Clear() filter:AddCardType( CARD_TYPE_CREATURE ) filter:SetPlayer( EffectController() ) filter:SetZone( ZONE_HAND ) filter:SetHint( HINT_ALLIED_ONLY, EffectController() ) filter:NotTargetted()</TARGET_DEFINITION>
<TARGET_DETERMINATION>return AtLeastOneTargetFromDefinition(0)</TARGET_DETERMINATION>
<PLAY_TIME_ACTION target_choosing="1">EffectController():ChooseTarget( 0, "CARD_QUERY_CHOOSE_CREATURE_TO_GAIN_CONTROL", EffectDC():Make_Targets(0) )</PLAY_TIME_ACTION>
<CONTINUOUS_ACTION layer="2">local target = EffectDC():Get_Targets(0):Get_CardPtr(0) if target ~= nil then target:SetController( EffectController() ) end</CONTINUOUS_ACTION>
<RESOLUTION_TIME_ACTION>local target = EffectDC():Get_Targets(0):Get_CardPtr(0) if target ~= nil then target:Untap() end</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">local target = EffectDC():Get_Targets(0):Get_CardPtr(0) if target ~= nil then local characteristics = target:GetCurrentCharacteristics() characteristics:Characteristic_Set( CHARACTERISTIC_WORTHLESS, 1 ) end</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="6">local target = EffectDC():Get_Targets(0):Get_CardPtr(0) if target ~= nil then local characteristics = target:GetCurrentCharacteristics() characteristics:Characteristic_Set( CHARACTERISTIC_HASTE, 1 ) end</CONTINUOUS_ACTION>
<RESOLUTION_TIME_ACTION>local delayDC = EffectDC():Make_Chest(1) delayDC:Set_CardPtr(0, EffectDC():Get_Targets(0):Get_CardPtr(0)) MTG():CreateDelayedTrigger(1, delayDC)</RESOLUTION_TIME_ACTION>
<DURATION simple_duration="UntilEOT" />
</ACTIVATED_ABILITY>
- <TRIGGERED_ABILITY resource_id="1" dangerous="1">
<TRIGGER value="BEGINNING_OF_STEP" simple_qualifier="controller">return ( MTG():GetStep() == STEP_END_OF_TURN )</TRIGGER>
<CLEANUP fire_once="1" />
<RESOLUTION_TIME_ACTION>local target = EffectDC():Get_CardPtr(0) if target ~= nil then target:Sacrifice(EffectController()) end</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>