Commit 99fbdcd3 authored by Tachibana's avatar Tachibana

tnndx

parent 879b7ac6
......@@ -59,6 +59,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if rp and rp==1-tp then return end
playerpaylpcostint=playerpaylpcostint+ev
end
function cm.reset(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -66,7 +66,7 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and e:GetHandler():IsPreviousPosition(POS_DEFENSE)
return rp==1-tp and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and c:IsPreviousPosition(POS_DEFENSE)
return rp==1-tp and c:IsPreviousPosition(POS_FACEDOWN)
end
function cm.setcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(cm.setfilter1,tp,LOCATION_MZONE,0,1,nil)
......
......@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCountLimit(1,m)
e3:SetTarget(cm.thtg)
e3:SetOperation(cm.thop)
c:RegisterEffect(e3)
......
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