<?xml version="1.0"?>
<MULTICARDS>
	<CARD>
		<TITLE text="GABRIEL_ANGELFIRE_TITLE" />
		<FILENAME text="Gabriel_Angelfire" />
		<ARTID value="81920269" />
		<FRAMECOLOUR name="GW GOLD" />
		<COLOR value="Z" />
		<ARTIST name="Daniel Gelon" />
		<SUB_TYPE metaname="Angel" />
		<CASTING_COST cost="{3}{W}{W}{G}{G}" />
		<POWER value="4" />
		<TOUGHNESS value="4" />
		<SUPERTYPE metaname="Legendary" />
		<TYPE metaname="Creature" />
		<EXPANSION metaname="CHR" />
		<RARITY metaname="rare" />
		<TRIGGERED_ABILITY tag="GABRIEL_ANGELFIRE_RULE_1" zone="Any" internal="1" layer="0">
			<TRIGGER value="BEGINNING_OF_STEP">
				return MyUpkeep()
			</TRIGGER>
			<EFFECT>
				Object():Register_Set( 0, -1 )
			</EFFECT>
		</TRIGGERED_ABILITY>
		<TRIGGERED_ABILITY tag="GABRIEL_ANGELFIRE_RULE_1" auto_skip="1" layer="1">
			<!-- This is to force the question abilities to activate without having the "effect" go off even when they are not in play -->
			<TRIGGER value="BEGINNING_OF_STEP">
				return MyUpkeep() and Object():Register_Get( 0 ) == -1
			</TRIGGER>
			<EFFECT>
			</EFFECT>
		</TRIGGERED_ABILITY>
		<STATIC_ABILITY internal="1" layer="0">
			<EFFECT>
				if (Object():Register_Get( 0 ) == 1) then
					Flying()
				else
					if (Object():Register_Get( 0 ) == 2) then
						First_Strike()
					else
						if (Object():Register_Get( 0 ) == 3) then
							Trample()
						end
					end
				end
			</EFFECT>
		</STATIC_ABILITY>
		<STATIC_ABILITY internal="1" layer="7c">
			<EFFECT>
				if (Object():Register_Get( 0 ) == 4) and (Object():Register_Get( 1 ) &gt; 1) then
					local nAdjustment = (Object():Register_Get( 1 ) - 1) * 3
					AddBothPowerAndToughnessToSelf( nAdjustment )
				end
			</EFFECT>
		</STATIC_ABILITY>
		<TRIGGERED_ABILITY internal="1" zone="Any" layer="0">
			<TRIGGER value="END_OF_STEP">
				return MyStep( STEP_CLEANUP )
			</TRIGGER>
			<EFFECT>
				Object():Register_Clear( 1 )
			</EFFECT>
		</TRIGGERED_ABILITY>
		<TRIGGERED_ABILITY internal="1" layer="0">
			<TRIGGER value="BLOCKING">
				return SecondaryObject() == Object()
			</TRIGGER>
			<EFFECT>
				Object():Register_Inc( 1 )
			</EFFECT>
		</TRIGGERED_ABILITY>
		<TRIGGERED_ABILITY auto_skip="1" layer="1">
			<TRIGGER value="ABILITY_RESOLVED">
				return SelfTriggered() and Object():Register_Get( 0 ) == -1
			</TRIGGER>
			<PLAYTIME>
				if (MTG():FromAIPerspective() == 0) then
					Object():GetPlayer():BeginNewMultipleChoice()
					Object():GetPlayer():AddMultipleChoiceAnswer( "INFO_BADGE_TITLE_10" )
					Object():GetPlayer():AddMultipleChoiceAnswer( "INFO_BADGE_TITLE_0" )
					Object():GetPlayer():AddMultipleChoiceAnswer( "RSN_MORE_OPTIONS" )
					Object():GetPlayer():AskMultipleChoiceQuestion( "GABRIEL_ANGELFIRE_ABILITY_QUESTION" )
				end
			</PLAYTIME>
			<PRE_EFFECT>
				if (Object():GetMultipleChoiceResult() == 0) then
					Object():Register_Set( 0, 1 )
				else
					if (MTG():FromAIPerspective() ~= 0 or Object():GetMultipleChoiceResult() == 1) then
						Object():Register_Set( 0, 2 )
					else
						Object():Register_Set( 0, -2 )
					end
				end
			</PRE_EFFECT>
			<EFFECT>
			</EFFECT>
		</TRIGGERED_ABILITY>
		<TRIGGERED_ABILITY auto_skip="1" layer="1">
			<TRIGGER value="ABILITY_RESOLVED">
				return SelfTriggered() and Object():Register_Get( 0 ) == -2
			</TRIGGER>
			<PLAYTIME>
				if (MTG():FromAIPerspective() == 0) then
					Object():GetPlayer():BeginNewMultipleChoice()
					Object():GetPlayer():AddMultipleChoiceAnswer( "INFO_BADGE_TITLE_1" )
					Object():GetPlayer():AddMultipleChoiceAnswer( "GABRIEL_ANGELFIRE_RAMPAGE_3" )
					Object():GetPlayer():AddMultipleChoiceAnswer( "BACK" )
					Object():GetPlayer():AskMultipleChoiceQuestion( "GABRIEL_ANGELFIRE_ABILITY_QUESTION" )
				end
			</PLAYTIME>
			<PRE_EFFECT>
				if (Object():GetMultipleChoiceResult() == 0) then
					Object():Register_Set( 0, 3 )
				else
					if (MTG():FromAIPerspective() ~= 0 or Object():GetMultipleChoiceResult() == 1) then
						Object():Register_Set( 0, 4 )
					else
						Object():Register_Set( 0, -1 )
					end
				end
			</PRE_EFFECT>
			<EFFECT>
			</EFFECT>
		</TRIGGERED_ABILITY>
		<SFX text="WHITEBLADE4_attack" />
	</CARD>
</MULTICARDS>
