Commit ac80ea2f authored by wind2009's avatar wind2009

Workaround for ジェムナイト

parent 7e945d9f
Pipeline #30470 passed with stages
in 1 minute and 8 seconds
No preview for this file type
...@@ -53,15 +53,18 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,15 +53,18 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
local e1=Effect.CreateEffect(e:GetHandler()) if Duel.GetFlagEffect(tp,100227043)==0 then
e1:SetType(EFFECT_TYPE_FIELD) Duel.RegisterFlagEffect(tp,100227043,RESET_PHASE+PHASE_END,0,1)
e1:SetCode(EFFECT_CHANGE_DAMAGE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(0,1) e1:SetCode(EFFECT_CHANGE_DAMAGE)
e1:SetCondition(s.damcon) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetValue(s.damval) e1:SetTargetRange(0,1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetCondition(s.damcon)
Duel.RegisterEffect(e1,tp) e1:SetValue(s.damval)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end end
function s.damcon(e,tp,eg,ep,ev,re,r,rp) function s.damcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
......
...@@ -133,15 +133,18 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -133,15 +133,18 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
local e1=Effect.CreateEffect(e:GetHandler()) if Duel.GetFlagEffect(tp,100227043)==0 then
e1:SetType(EFFECT_TYPE_FIELD) Duel.RegisterFlagEffect(tp,100227043,RESET_PHASE+PHASE_END,0,1)
e1:SetCode(EFFECT_CHANGE_DAMAGE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(0,1) e1:SetCode(EFFECT_CHANGE_DAMAGE)
e1:SetCondition(s.damcon) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetValue(s.damval) e1:SetTargetRange(0,1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetCondition(s.damcon)
Duel.RegisterEffect(e1,tp) e1:SetValue(s.damval)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end end
end end
function s.damcon(e,tp,eg,ep,ev,re,r,rp) function s.damcon(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