Commit ba48317f authored by 聖園ミカ's avatar 聖園ミカ 🐟

str

parent da84f04e
--纯白花嫁 希儿
local m=75646970
local cm=_G["c"..m]
Duel.LoadScript("c33503600.lua")
cm.dfc_front_side=m
cm.dfc_back_side=m+1
cm.code=75646970
......@@ -77,33 +78,8 @@ end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.GetMZoneCount(tp)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,m+1,0xa2c2,0x21,2800,2000,8,RACE_PSYCHO,ATTRIBUTE_WATER) then
Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_MOVE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e1:SetCountLimit(1)
e1:SetLabel(c.dfc_front_side)
e1:SetCondition(cm.backon)
e1:SetOperation(cm.backop)
c:RegisterEffect(e1)
local tcode=c.dfc_back_side
c:SetEntityCode(tcode,true)
c:ReplaceEffect(tcode,RESET_EVENT+0x7e0000)
c:RegisterFlagEffect(m,0,0,0)
Duel.SpecialSummonComplete()
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 and Suyu_bh.c_code(c) then
Suyu_bh.changecode(c)
end
end
end
function cm.backon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return e:GetHandler():GetFlagEffect(m)>0
end
function cm.backop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tcode=e:GetLabel()
c:SetEntityCode(tcode)
Duel.ConfirmCards(tp,Group.FromCards(c))
Duel.ConfirmCards(1-tp,Group.FromCards(c))
c:ReplaceEffect(tcode,0,0)
c:ResetFlagEffect(m)
end
\ No newline at end of file
......@@ -3,6 +3,9 @@ local m=75646971
local cm=_G["c"..m]
cm.dfc_front_side=m-1
cm.dfc_back_side=m
Duel.LoadScript("c33503600.lua")
cm.code=75646970
cm.side_code=75646971
function cm.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
......@@ -23,6 +26,11 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetOperation(cm.chainop)
c:RegisterEffect(e2)
--
if not rk.Side_Check then
rk.Side_Check=true
local ce=rk.side_do(c)
end
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(1-tp) end
......
......@@ -9,7 +9,6 @@ function cm.initial_effect(c)
--overlay
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_CHAINING)
......@@ -24,7 +23,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCondition(cm.descon)
e3:SetCost(cm.descost)
e3:SetTarget(cm.destg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment