Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions unofficial/c511600443.lua
Original file line number Diff line number Diff line change
@@ -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}