Commit da739534 authored by DailyShana's avatar DailyShana

fix

parent 4296bced
......@@ -38,10 +38,9 @@ function c43175858.initial_effect(c)
e4:SetLabelObject(g)
end
function c43175858.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
if ct>3 then ct=3 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,ct,tp,LOCATION_DECK)
local g=Duel.GetDecktopGroup(tp,3)
if chk==0 then return g:IsExists(Card.IsAbleToRemove,3,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,3,tp,LOCATION_DECK)
end
function c43175858.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
......
......@@ -39,16 +39,20 @@ function c94997874.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,c94997874.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
if g:GetFirst():IsFaceup() then
return e:SetLabel(POS_FACEUP)
if g:GetFirst():IsFacedown() then
return e:SetLabel(0)
else
return e:SetLabel(POS_FACEDOWN)
return e:SetLabel(1)
end
end
function c94997874.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsPosition(e:GetLabel()) then
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENCE,POS_FACEUP_ATTACK,POS_FACEDOWN_DEFENCE,POS_FACEUP_ATTACK)
if tc:IsRelateToEffect(e) then
if e:GetLabel()==0 then
Duel.ChangePosition(tc,POS_FACEUP_ATTACK)
elseif e:GetLabel()==1 then
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENCE)
end
end
end
function c94997874.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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