Commit e540469f authored by Tachibana's avatar Tachibana

eme

parent 085ba013
Pipeline #6538 passed with stages
in 30 minutes and 44 seconds
......@@ -55,7 +55,7 @@ function cm.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE)
end
function cm.setfilter2(c)
return c:IsFaceup() and c:IsCanTurnSet()
return ( c:IsFaceup() and c:IsCanTurnSet() ) or ( c:IsPosition(POS_FACEDOWN_DEFENSE) and c:IsCanChangePosition() )
end
function cm.settg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.setfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......@@ -66,6 +66,8 @@ function cm.setop2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.SelectMatchingCard(tp,cm.setfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil):GetFirst()
if tc:IsFaceup() then
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)
elseif tc:IsPosition(POS_FACEDOWN_DEFENSE) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE)
end
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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