Commit 0f19f8fc authored by salix5's avatar salix5

Merge pull request #1436 from nekrozar/patch-4

fix Swap Frog, Yosenju Kodam, Red-Eyes Tracer Dragon, Mithra the Thunder Vassal
parents 236575b0 b0c911af
......@@ -16,6 +16,7 @@ function c22404675.initial_effect(c)
e2:SetCode(EVENT_RELEASE)
e2:SetCountLimit(1,22404676)
e2:SetCondition(c22404675.sumcon)
e2:SetTarget(c22404676.sumtg)
e2:SetOperation(c22404675.sumop)
c:RegisterEffect(e2)
end
......@@ -57,6 +58,9 @@ end
function c22404675.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_SUMMON)
end
function c22404676.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_SUMMON) end
end
function c22404675.sumop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,22404675)~=0 then return end
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -16,6 +16,7 @@ function c23740893.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCost(c23740893.sumcost)
e2:SetTarget(c23740893.sumtg)
e2:SetOperation(c23740893.sumop)
c:RegisterEffect(e2)
end
......@@ -43,6 +44,9 @@ function c23740893.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c23740893.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_SUMMON) end
end
function c23740893.sumop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,23740893)~=0 then return end
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -19,6 +19,7 @@ function c53485634.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c53485634.sumcon)
e2:SetCost(c53485634.sumcost)
e2:SetTarget(c53485634.sumtg)
e2:SetOperation(c53485634.sumop)
c:RegisterEffect(e2)
end
......@@ -71,6 +72,9 @@ function c53485634.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c53485634.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_SUMMON) end
end
function c53485634.sumop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -30,6 +30,7 @@ function c9126351.initial_effect(c)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetCost(c9126351.excost)
e2:SetTarget(c9126352.extg)
e5:SetOperation(c9126351.exop)
c:RegisterEffect(e5)
end
......@@ -68,6 +69,9 @@ function c9126351.excost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoHand(g,nil,REASON_COST)
Duel.RegisterFlagEffect(tp,9126352,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function c9126352.extg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_SUMMON) end
end
function c9126351.exop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
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