Commit 18c6bb7c authored by salix5's avatar salix5

fix マドルチェ・ピョコレート

このカードがフィールド上に表側表示で存在し、
parent f727103a
......@@ -36,14 +36,20 @@ function c26570480.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT)
end
end
function c26570480.cfilter(c,tp)
function c26570480.cfilter(c,tp,ec)
local np=c:GetPosition()
local pp=c:GetPreviousPosition()
return ((np==POS_FACEUP_DEFENSE and pp==POS_FACEUP_ATTACK) or (bit.band(pp,POS_DEFENSE)~=0 and np==POS_FACEUP_ATTACK))
and c:IsControler(tp) and c:IsSetCard(0x71)
if c==ec then
return ((np==POS_FACEUP_DEFENSE and pp==POS_FACEUP_ATTACK) or (np==POS_FACEUP_ATTACK and pp==POS_FACEUP_DEFENSE))
and c:IsControler(tp) and c:IsSetCard(0x71)
else
return ((np==POS_FACEUP_DEFENSE and pp==POS_FACEUP_ATTACK) or (np==POS_FACEUP_ATTACK and pp&POS_DEFENSE~=0))
and c:IsControler(tp) and c:IsSetCard(0x71)
end
end
function c26570480.poscon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c26570480.cfilter,1,nil,tp)
return eg:IsExists(c26570480.cfilter,1,nil,tp,e:GetHandler())
end
function c26570480.filter(c)
return not c:IsPosition(POS_FACEUP_DEFENSE) and c:IsCanChangePosition()
......
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