From 64e8fc1331a1cc2986c478806e17c90c23eabbd4 Mon Sep 17 00:00:00 2001 From: When <104731682+idk-what-to-name-here@users.noreply.github.com> Date: Wed, 16 Aug 2023 19:33:06 +0300 Subject: [PATCH] Add files via upload --- unofficial/c511027587.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 unofficial/c511027587.lua diff --git a/unofficial/c511027587.lua b/unofficial/c511027587.lua new file mode 100644 index 0000000000..9ec2ea4bda --- /dev/null +++ b/unofficial/c511027587.lua @@ -0,0 +1,22 @@ +--幻水龍 (Anime) +--Mythic Water Dragon (Anime) +local s,id=GetID() +function s.initial_effect(c) + --special summon + local e1=Effect.CreateEffect(c) + e1:SetType(EFFECT_TYPE_FIELD) + e1:SetCode(EFFECT_SPSUMMON_PROC) + e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) + e1:SetRange(LOCATION_HAND) + e1:SetCondition(s.spcon) + c:RegisterEffect(e1) +end +function s.spfilter(c) + return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) +end +function s.spcon(e,c) + if c==nil then return true end + local tp=c:GetControler() + return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE,0,1,nil) +end