Skip to content

Fist the Contractor of the Imprisoned Dragon ​

  • Card ID: 120306037
  • Format: Rush Duel
  • Script: Rush/Scripts/c120306037.lua

Stats ​

FieldValue
Type0x61
ATK2800
DEF2000
Level/Rank/Link0x9
Race0x800000
Attribute0x2
Category0x2

Card Text ​

text
"Fist the Star Protector's Roaring Gauntlet" + 1 Level 8 or lower WATER Attribute Effect Monster	
[REQUIREMENT]	
During your Main Phase that you Fusion Summoned this card, shuffle 2 monsters from your Graveyard into the Deck.	
[EFFECT]	
Destroy 1 monster on your opponent's field. Then, you can destroy 1 WATER Attribute Magical Knight or Machine Type monster on your opponent's field.

Detected API Calls ​

Script ​

lua
local cm,m=GetID()
local list={120306011}
cm.name="狱龙的契约者 非斯特"
function cm.initial_effect(c)
	RD.AddCodeList(c,list)
	--Fusion Material
	RD.AddFusionProcedure(c,list[1],cm.matfilter)
	--Destroy
	local e1=Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(m,0))
	e1:SetCategory(CATEGORY_DESTROY)
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCondition(cm.condition)
	e1:SetCost(cm.cost)
	e1:SetTarget(cm.target)
	e1:SetOperation(cm.operation)
	c:RegisterEffect(e1)
end
--Fusion Material
cm.unspecified_funsion=true
function cm.matfilter(c)
	return c:IsFusionType(TYPE_EFFECT) and c:IsLevelBelow(8) and c:IsFusionAttribute(ATTRIBUTE_WATER)
end
--Destroy
function cm.costfilter(c)
	return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.desfilter(c)
	return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WATER)
		and (c:IsRace(RACE_MACHINE) or c:IsRace(RACE_MAGICALKNIGHT))
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.IsSpecialSummonMainPhase(e:GetHandler(),SUMMON_TYPE_FUSION)
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,2,2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_MZONE,1,nil) end
	local g=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
	Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	RD.SelectAndDoAction(HINTMSG_DESTROY,nil,tp,0,LOCATION_MZONE,1,1,nil,function(g)
		if Duel.Destroy(g,REASON_EFFECT)~=0 then
			RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,cm.desfilter,tp,0,LOCATION_MZONE,1,1,nil,function(sg)
				Duel.BreakEffect()
				Duel.Destroy(sg,REASON_EFFECT)
			end)
		end
	end)
end