Commit d51e7382 authored by TanakaKotoha's avatar TanakaKotoha

bbbb

parent d286802a
No preview for this file type
...@@ -44,14 +44,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,14 +44,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
else else
Duel.ChangePosition(tc,POS_FACEDOWN) Duel.ChangePosition(tc,POS_FACEDOWN)
end end
elseif tc:IsType(TYPE_TOKEN) then end
return if not tc:IsType(TYPE_TOKEN) and (tc:IsFaceup() or not tc:IsLocation(LOCATION_REMOVED)) then
elseif tc:IsType(TYPE_PENDULUM) then
Duel.Remove(tc,POS_FACEDOWN,REASON_RULE)
elseif tc:IsFaceup() or not tc:IsLocation(LOCATION_REMOVED) then
Duel.Remove(tc,POS_FACEDOWN,REASON_RULE) Duel.Remove(tc,POS_FACEDOWN,REASON_RULE)
else
return
end end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON)
......
...@@ -64,7 +64,7 @@ function cm.poscon(e) ...@@ -64,7 +64,7 @@ function cm.poscon(e)
return e:GetHandler():IsAttackPos() return e:GetHandler():IsAttackPos()
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:GetSummonPlayer()==1-tp and (not e or c:IsRelateToEffect(e)) return c:GetSummonPlayer()==1-tp and (not e or c:IsRelateToEffect(e)) and not c:IsType(TYPE_TOKEN)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(cm.filter,1,nil,nil,tp) end if chk==0 then return eg:IsExists(cm.filter,1,nil,nil,tp) end
...@@ -75,9 +75,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,9 +75,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.filter,nil,e,tp) local g=eg:Filter(cm.filter,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
if Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 and tc:IsCanTurnSet() and not tc:IsType(TYPE_PENDULUM) then if Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 and tc:IsCanTurnSet() and not tc:IsType(TYPE_PENDULUM+TYPE_TOKEN) then
if Duel.MoveToField(tc,tp,1-tp,LOCATION_SZONE,POS_FACEDOWN,true)~=0 and not tc:IsType(TYPE_TOKEN) then if Duel.MoveToField(tc,tp,1-tp,LOCATION_SZONE,POS_FACEDOWN,true)~=0 then
Duel.ConfirmCards(1-tp,tc)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_CHANGE_TYPE) e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -85,17 +84,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,17 +84,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
elseif tc:IsType(TYPE_TOKEN) then
local c=e:GetHandler()
else else
Duel.Remove(tc,POS_FACEDOWN,REASON_RULE) Duel.Remove(tc,POS_FACEDOWN,REASON_RULE)
end end
elseif tc:IsType(TYPE_TOKEN) then end
local c=e:GetHandler() if not tc:IsType(TYPE_TOKEN) and (tc:IsFaceup() or not tc:IsLocation(LOCATION_REMOVED)) then
elseif tc:IsFaceup() or not tc:IsLocation(LOCATION_REMOVED) then
Duel.Remove(tc,POS_FACEDOWN,REASON_RULE) Duel.Remove(tc,POS_FACEDOWN,REASON_RULE)
else
local c=e:GetHandler()
end end
tc=g:GetNext() tc=g:GetNext()
end 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