Commit 04914de7 authored by wind2009's avatar wind2009

Fix Swarm of Centipedes

对象为陷阱怪兽,变为陷阱时不处理
parent b3dcf895
--蜈蚣群 --Swarm of Centipedes
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -31,7 +31,7 @@ end ...@@ -31,7 +31,7 @@ end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then
if tc:IsPosition(POS_FACEUP_DEFENSE) and c:IsFacedown() then if tc:IsPosition(POS_FACEUP_DEFENSE) and c:IsFacedown() then
if Duel.SelectYesNo(tp,aux.Stringid(id,2)) then if Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)
......
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