Commit a4cb6781 authored by mallu11's avatar mallu11 Committed by GitHub

fix level up/down effect(select option in operation) (#1478)

* fix 電脳堺門-朱雀

* fix インフェルニティ・ワイルドキャット

* fix TGスクリュー・サーペント
parent 633036a6
......@@ -65,8 +65,13 @@ end
function c11234702.lvop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local sel=0
local lvl=1
local sel=Duel.SelectOption(tp,aux.Stringid(11234702,1),aux.Stringid(11234702,2))
if tc:IsLevel(1) then
sel=Duel.SelectOption(tp,aux.Stringid(11234702,1))
else
sel=Duel.SelectOption(tp,aux.Stringid(11234702,1),aux.Stringid(11234702,2))
end
if sel==1 then
lvl=-1
end
......
......@@ -73,8 +73,13 @@ end
function c13364097.lvop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local sel=0
local lvl=3
local sel=Duel.SelectOption(tp,aux.Stringid(13364097,2),aux.Stringid(13364097,3))
if tc:IsLevelBelow(3) or tc:IsRankBelow(3) then
sel=Duel.SelectOption(tp,aux.Stringid(13364097,2))
else
sel=Duel.SelectOption(tp,aux.Stringid(13364097,2),aux.Stringid(13364097,3))
end
if sel==1 then
lvl=-3
end
......
......@@ -55,7 +55,12 @@ end
function c74148483.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
local opt=Duel.SelectOption(tp,aux.Stringid(74148483,1),aux.Stringid(74148483,2))
local opt=0
if c:IsLevel(1) then
opt=Duel.SelectOption(tp,aux.Stringid(74148483,1))
else
opt=Duel.SelectOption(tp,aux.Stringid(74148483,1),aux.Stringid(74148483,2))
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
......
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