From a3b7e9af5b8e90405d0f3b00952359c4f596cd25 Mon Sep 17 00:00:00 2001 From: AbdulRahman Fouad Date: Thu, 3 Sep 2026 04:10:01 +0300 Subject: [PATCH] Add "Gagagamirage" script --- unofficial/c511600443.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 unofficial/c511600443.lua diff --git a/unofficial/c511600443.lua b/unofficial/c511600443.lua new file mode 100644 index 0000000000..4ab763030d --- /dev/null +++ b/unofficial/c511600443.lua @@ -0,0 +1,25 @@ +--ガガガミラージュ +--Gagagamirage +local s,id=GetID() +function s.initial_effect(c) + --Activate + local e0=Effect.CreateEffect(c) + e0:SetType(EFFECT_TYPE_ACTIVATE) + e0:SetCode(EVENT_FREE_CHAIN) + c:RegisterEffect(e0) + --"Gagaga" monsters you control can be treated as 2 materials for an Xyz Summon + local e1=Effect.CreateEffect(c) + e1:SetType(EFFECT_TYPE_FIELD) + e1:SetCode(EFFECT_DOUBLE_XYZ_MATERIAL) + e1:SetRange(LOCATION_SZONE) + e1:SetTargetRange(LOCATION_MZONE,0) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_GAGAGA)) + e1:SetValue(1) + c:RegisterEffect(e1) + --Once per turn, you can Ignore the Attribute and Type requirements for and Xyz Summon + local e2=e1:Clone() + e2:SetCode(id) + e2:SetCondition(function(e) return not e:GetHandler():HasFlagEffect(5160443) end) + c:RegisterEffect(e2) +end +s.listed_series={SET_GAGAGA} \ No newline at end of file