Commit 2a6ce774 authored by Chen Bill's avatar Chen Bill

workaround fix クシャトリラ

parent 8eb9eb51
...@@ -40,7 +40,7 @@ function c32909498.initial_effect(c) ...@@ -40,7 +40,7 @@ function c32909498.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,32909499) e4:SetCountLimit(1,32909499)
e4:SetCondition(c32909498.rmcon) e4:SetCondition(c32909498.rmcon)
e4:SetTarget(c32909498.rmtg) e4:SetTarget(c32909498.rmtg2)
e4:SetOperation(c32909498.rmop) e4:SetOperation(c32909498.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
...@@ -83,3 +83,10 @@ end ...@@ -83,3 +83,10 @@ end
function c32909498.rmcon(e,tp,eg,ep,ev,re,r,rp) function c32909498.rmcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsActiveType(TYPE_MONSTER) return rp==1-tp and re:IsActiveType(TYPE_MONSTER)
end end
function c32909498.rmtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c32909498.rmfilter(chkc,tp) end
if chk==0 then return rp==1-tp and Duel.IsExistingTarget(c32909498.rmfilter,tp,0,LOCATION_ONFIELD,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c32909498.rmfilter,tp,0,LOCATION_ONFIELD,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
...@@ -39,7 +39,7 @@ function c68304193.initial_effect(c) ...@@ -39,7 +39,7 @@ function c68304193.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,68304194) e4:SetCountLimit(1,68304194)
e4:SetCondition(c68304193.rmcon) e4:SetCondition(c68304193.rmcon)
e4:SetTarget(c68304193.rmtg) e4:SetTarget(c68304193.rmtg2)
e4:SetOperation(c68304193.rmop) e4:SetOperation(c68304193.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
...@@ -83,3 +83,7 @@ end ...@@ -83,3 +83,7 @@ end
function c68304193.rmcon(e,tp,eg,ep,ev,re,r,rp) function c68304193.rmcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsActiveType(TYPE_MONSTER) return rp==1-tp and re:IsActiveType(TYPE_MONSTER)
end end
function c68304193.rmtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return rp==1-tp and Duel.IsExistingMatchingCard(c68304193.rmfilter,tp,0,LOCATION_EXTRA,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_EXTRA)
end
...@@ -39,7 +39,7 @@ function c94392192.initial_effect(c) ...@@ -39,7 +39,7 @@ function c94392192.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,94392193) e4:SetCountLimit(1,94392193)
e4:SetCondition(c94392192.rmcon) e4:SetCondition(c94392192.rmcon)
e4:SetTarget(c94392192.rmtg) e4:SetTarget(c94392192.rmtg2)
e4:SetOperation(c94392192.rmop) e4:SetOperation(c94392192.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
...@@ -68,7 +68,7 @@ function c94392192.rmfilter(c,tp) ...@@ -68,7 +68,7 @@ function c94392192.rmfilter(c,tp)
end end
function c94392192.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c94392192.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetDecktopGroup(1-tp,1) local g=Duel.GetDecktopGroup(1-tp,1)
if chk==0 then return g and #g>0 and g:GetFirst():IsAbleToRemove(tp,POS_FACEDOWN) end if chk==0 then return #g>0 and g:GetFirst():IsAbleToRemove(tp,POS_FACEDOWN) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK)
end end
function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp) function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp)
...@@ -96,3 +96,8 @@ end ...@@ -96,3 +96,8 @@ end
function c94392192.rmcon(e,tp,eg,ep,ev,re,r,rp) function c94392192.rmcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsActiveType(TYPE_MONSTER) return rp==1-tp and re:IsActiveType(TYPE_MONSTER)
end end
function c94392192.rmtg2(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetDecktopGroup(1-tp,1)
if chk==0 then return rp==1-tp and #g>0 and g:GetFirst():IsAbleToRemove(tp,POS_FACEDOWN) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK)
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