Commit d3edb9c6 authored by TanakaKotoha's avatar TanakaKotoha

mopempoe

parent 8bb64fce
Pipeline #786 passed with stages
in 46 minutes and 25 seconds
......@@ -71,28 +71,29 @@ function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,tp,LOCATION_DECK)
end
function cm.thop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.IsPlayerCanDraw(tp,1) and Duel.Draw(tp,1,REASON_EFFECT)~=0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
local res=0
if c:GetLevel()<=4 then
res=Duel.SelectOption(tp,aux.Stringid(m,3))
else
res=Duel.SelectOption(tp,aux.Stringid(m,3),aux.Stringid(m,4))
end
if res>0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
if res==1 then
e1:SetValue(-4)
Duel.BreakEffect()
local res=0
if c:GetLevel()<=4 then
res=Duel.SelectOption(tp,aux.Stringid(m,3))
else
e1:SetValue(-2)
res=Duel.SelectOption(tp,aux.Stringid(m,3),aux.Stringid(m,4))
end
if res>0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
if res==1 then
e1:SetValue(-4)
else
e1:SetValue(-2)
end
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
end
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
end
end
end
--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