Skip to content

Madrhea Amelo ​

  • Card ID: 120300028
  • Format: Rush Duel
  • Script: Rush/Scripts/c120300028.lua

Stats ​

FieldValue
Type0x21
ATK1300
DEF1100
Level/Rank/Link0x4
Race0x80000
Attribute0x20
Category0x410402

Card Text ​

text
[REQUIREMENT]	
During the turn you Normal Summoned this card, shuffle 3 monsters from your Graveyard into the Deck.	
[EFFECT]	
Destroy 1 Attack Position Level 3-8 Effect Monster on your opponent's field. Then, if you destroyed a monster whose original Level is 6 by this effect, you can inflict 600 damage to your opponent. This turn, you cannot attack with Level 6 or lower monsters.

Detected API Calls ​

Script ​

lua
local cm,m=GetID()
cm.name="疯狂犯罪者·变色龙女"
function cm.initial_effect(c)
	--Destroy
	local e1=Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(m,0))
	e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCondition(RD.ConditionSummonTurn)
	e1:SetCost(cm.cost)
	e1:SetTarget(cm.target)
	e1:SetOperation(cm.operation)
	c:RegisterEffect(e1)
end
--Destroy
function cm.costfilter(c)
	return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.desfilter(c)
	return c:IsPosition(POS_FACEUP_ATTACK) and c:IsType(TYPE_EFFECT)
		and c:IsLevelAbove(3) and c:IsLevelBelow(8)
end
function cm.exfilter(c)
	return c:GetOriginalLevel()==6
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,3,3)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(cm.desfilter,tp,0,LOCATION_MZONE,1,nil) end
	local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
	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,cm.desfilter,tp,0,LOCATION_MZONE,1,1,nil,function(g)
		if Duel.Destroy(g,REASON_EFFECT)~=0 and g:IsExists(cm.exfilter,1,nil) then
			RD.CanDamage(aux.Stringid(m,1),tp,600)
		end
	end)
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateHintEffect(e,aux.Stringid(m,2),tp,1,0,RESET_PHASE+PHASE_END)
	RD.CreateAttackLimitEffect(e,cm.atktg,tp,LOCATION_MZONE,0,RESET_PHASE+PHASE_END)
	Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end
function cm.atktg(e,c)
	return c:IsLevelBelow(6)
end