Commit e540469f authored by Tachibana's avatar Tachibana

eme

parent 085ba013
...@@ -55,7 +55,7 @@ function cm.setcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,7 +55,7 @@ function cm.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE) Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE)
end end
function cm.setfilter2(c) 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 end
function cm.settg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) 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 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) ...@@ -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() local tc=Duel.SelectMatchingCard(tp,cm.setfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil):GetFirst()
if tc:IsFaceup() then if tc:IsFaceup() then
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)
elseif tc:IsPosition(POS_FACEDOWN_DEFENSE) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE)
end end
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) 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