Commit fd305ce7 authored by Tachibana's avatar Tachibana

ndyd

parent d6f88ce9
Pipeline #4912 passed with stages
in 26 minutes and 21 seconds
No preview for this file type
......@@ -23,12 +23,11 @@ function c85400100.initial_effect(c)
c:RegisterEffect(e2)
-----改变「宫子」的控制权
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE+CATEGORY_SEARCH)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE+CATEGORY_TOKEN)
e3:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE)
e3:SetCode(EVENT_DESTROY)
e3:SetTarget(c85400100.ff)
e3:SetOperation(c85400100.gg)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
c:RegisterEffect(e3)
-----被破坏时生成衍生物并除外卡组中的一张卡
......@@ -86,8 +85,7 @@ function c85400100.ff(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function c85400100.gg(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,85400300,0,0x4011,300,100,1,RACE_ZOMBIE,ATTRIBUTE_DARK) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,85400300,0,0x4011,300,100,1,RACE_ZOMBIE,ATTRIBUTE_DARK) then return end
local token=Duel.CreateToken(tp,85400300)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
......@@ -225,4 +223,3 @@ end
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