Commit 6c5c0e28 authored by JoyJ's avatar JoyJ

fix

parent 7a487a49
--所有起动效果变为2速。 --所有起动效果变为2速。
--游戏开始时,后攻者抽2张卡。 --游戏开始时,后攻者抽2张卡。
-- --每个回合开始时,非回合玩家将【灰流丽】【效果遮蒙者】【原始生命态尼比鲁】【增殖的G】【幽鬼兔】中的随机1张加入手卡。回合结束时,那张卡里侧表示除外。
local OrigSetType = Effect.SetType local OrigSetType = Effect.SetType
CUNGUI = {}
function Auxiliary.PreloadUds() function Auxiliary.PreloadUds()
Effect.SetType = function(e,typ) Effect.SetType = function(e,typ)
if typ==EFFECT_TYPE_IGNITION then typ=EFFECT_TYPE_QUICK_O end if typ==EFFECT_TYPE_IGNITION then
typ=EFFECT_TYPE_QUICK_O
e:SetCode(EVENT_FREE_CHAIN)
end
OrigSetType(e,typ) OrigSetType(e,typ)
end end
-- 1 more draw -- 2 more draw
local e1=Effect.GlobalEffect() local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
...@@ -22,8 +26,6 @@ function Auxiliary.PreloadUds() ...@@ -22,8 +26,6 @@ function Auxiliary.PreloadUds()
Auxiliary.PreloadUds2() Auxiliary.PreloadUds2()
end end
CUNGUI = {}
function Auxiliary.PreloadUds2() function Auxiliary.PreloadUds2()
--adjust --adjust
local e1=Effect.GlobalEffect() local e1=Effect.GlobalEffect()
...@@ -46,7 +48,7 @@ function CUNGUI.GetRandomNumber() ...@@ -46,7 +48,7 @@ function CUNGUI.GetRandomNumber()
end end
function CUNGUI.AdjustOperation(e,tp,eg,ep,ev,re,r,rp) function CUNGUI.AdjustOperation(e,tp,eg,ep,ev,re,r,rp)
local tp = Duel.GetTurnPlayer() tp = 1-Duel.GetTurnPlayer()
local g=Group.CreateGroup() local g=Group.CreateGroup()
local cards = {23434538,27204311,14558127,59438930,97268402} local cards = {23434538,27204311,14558127,59438930,97268402}
local add = Duel.CreateToken(tp,cards[CUNGUI.GetRandomNumber()]) local add = Duel.CreateToken(tp,cards[CUNGUI.GetRandomNumber()])
...@@ -66,6 +68,6 @@ function CUNGUI.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,6 +68,6 @@ function CUNGUI.rmop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
if tc:GetFlagEffect(23456789)>0 then if tc:GetFlagEffect(23456789)>0 then
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
e:Reset()
end end
end end
?
\ No newline at end of file
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