Commit c4f0dbe9 authored by argon.sun's avatar argon.sun

fix

parent 5a42008b
......@@ -30,20 +30,25 @@ function c42874792.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetRange(LOCATION_REMOVED)
e1:SetCountLimit(1)
if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then
e1:SetLabel(Duel.GetTurnCount())
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2)
if Duel.GetTurnPlayer()==tp then
if Duel.GetCurrentPhase()==PHASE_DRAW then
e1:SetLabel(Duel.GetTurnCount())
else
e1:SetLabel(Duel.GetTurnCount()+2)
end
else
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN)
e1:SetLabel(Duel.GetTurnCount()+1)
end
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetCondition(c42874792.retcon)
e1:SetOperation(c42874792.retop)
tc:RegisterEffect(e1)
end
end
function c42874792.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel()
return Duel.GetTurnCount()==e:GetLabel()
end
function c42874792.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.ReturnToField(e:GetHandler())
e:Reset()
end
......@@ -57,9 +57,9 @@ function c4756629.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:RegisterFlagEffect(4756629,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
end
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:RegisterFlagEffect(4756629,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
end
function c4756629.sumcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -81,18 +81,31 @@ function c4756629.sumop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c4756629.decop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsReason(REASON_RETURN) or Duel.GetFlagEffect(tp,4756630)~=0 then return end
local e1=Effect.CreateEffect(e:GetHandler())
local c=e:GetHandler()
if c:IsReason(REASON_RETURN) or Duel.GetFlagEffect(tp,4756630)~=0 then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DECREASE_TRIBUTE)
e1:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
e1:SetTarget(c4756629.rfilter)
e1:SetCondition(c4756629.econ)
e1:SetCountLimit(1)
e1:SetValue(0x1)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(0x10000000+4756631)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetTargetRange(1,0)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2)
Duel.RegisterFlagEffect(tp,4756630,RESET_PHASE+PHASE_END,0,1)
end
function c4756629.econ(e)
return Duel.GetFlagEffect(tp,4756631)~=0
end
function c4756629.rfilter(e,c)
return c:IsSetCard(0xa)
end
......@@ -37,7 +37,7 @@ end
function c59388357.activate(e,tp,eg,ep,ev,re,r,rp)
local tc1,tc2=Duel.GetFirstTarget()
if tc1~=e:GetLabelObject() then tc1,tc2=tc2,tc1 end
if tc1:IsRelateToEffect(e) and Duel.Destroy(tc1,REASON_EFFECT)>0 and tc2:IsRelateToEffect(e) then
if tc1:IsControler(tp) and tc1:IsRelateToEffect(e) and Duel.Destroy(tc1,REASON_EFFECT)>0 and tc2:IsRelateToEffect(e) then
Duel.SpecialSummon(tc2,0,tp,tp,false,false,POS_FACEUP)
end
end
......@@ -30,7 +30,7 @@ function c61441708.initial_effect(c)
end
function c61441708.spr(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if bit.band(r,0x41)~=0x41 or c:IsPreviousLocation(LOCATION_SZONE) then return end
if bit.band(r,0x41)~=0x41 then return end
if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then
e:SetLabel(Duel.GetTurnCount())
c:RegisterFlagEffect(61441708,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,0,2)
......
......@@ -57,9 +57,9 @@ function c78358521.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:RegisterFlagEffect(78358521,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
end
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:RegisterFlagEffect(78358521,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
end
function c78358521.sumcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -81,18 +81,31 @@ function c78358521.sumop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c78358521.decop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsReason(REASON_RETURN) or Duel.GetFlagEffect(tp,78358522)~=0 then return end
local e1=Effect.CreateEffect(e:GetHandler())
local c=e:GetHandler()
if c:IsReason(REASON_RETURN) or Duel.GetFlagEffect(tp,78358522)~=0 then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DECREASE_TRIBUTE)
e1:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
e1:SetTarget(c78358521.rfilter)
e1:SetCondition(c78358521.econ)
e1:SetCountLimit(1)
e1:SetValue(0x1)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(0x10000000+78358523)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetTargetRange(1,0)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2)
Duel.RegisterFlagEffect(tp,78358522,RESET_PHASE+PHASE_END,0,1)
end
function c78358521.econ(e)
return Duel.GetFlagEffect(tp,78358523)~=0
end
function c78358521.rfilter(e,c)
return c:IsSetCard(0x53)
end
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