Commit 37e9bed8 authored by JoyJ's avatar JoyJ

fixes

parent 880c4887
......@@ -10,7 +10,7 @@ CUNGUI = {}
CUNGUI.forbidden={91869203,20663556,44910027,51858306,25862681,53804307,7563579,17330916,
34945480,90411554,8903700,11384280,17412721,67441435,34124316,88071625,61665245,52653092,
48905153,85115440,59537380,86148577,88581108,21377582,94677445,16923472,15341821,37818794,
18326736,79875176,75732622,22593417,39064822,03679218,54719828,58820923,26400609,71525232,
18326736,79875176,75732622,22593417,39064822,3679218,54719828,58820923,26400609,71525232,
78706415,93369354,23558733,9929398,9047460,70369116,31178212,63101919,34206604,4423206,
14702066,96782886,3078576,34086406,85243784,57421866,41482598,44763025,17375316,19613556,
74191942,42829885,45986603,55144522,4031928,23557835,31423101,57953380,54447022,60682203,
......
......@@ -7,7 +7,7 @@ local OrigSetType = Effect.SetType
function Auxiliary.PreloadUds()
Effect.SetType = function(e,typ)
if (typ & EFFECT_TYPE_IGNITION)+(typ & EFFECT_TYPE_QUICK_O)>0 then
e:SetProperty(e:GetProperty() | EFFECT_FLAG_BOTH_SIDE)
e:SetProperty((e:GetProperty() or 0) | EFFECT_FLAG_BOTH_SIDE)
end
OrigSetType(e,typ)
end
......
......@@ -2,7 +2,7 @@
--开局时,双方从卡组外将1张【娱乐法师 戏法小丑】表侧表示从游戏中除外。
--这张【娱乐法师 戏法小丑】得到以下效果。
--①自己准备阶段,这张卡不在场上的场合发动。
--投1个硬币。如果是正面,这张卡在自己场上特殊召唤,自己受到1000点伤害。
--投1个硬币。如果是正面,这张卡在自己场上特殊召唤,自己受到(1~当前LP)点的随机伤害。
--③这张卡离开场上的场合从游戏中除外,不在场上存在的场合(比如作为超量素材)从游戏中除外。
CUNGUI = {}
......@@ -22,6 +22,12 @@ function CUNGUI.AdjustOperation()
CUNGUI.RegisterForbiddenRule(0)
CUNGUI.RegisterForbiddenRule(1)
end
if not CUNGUI.RandomSeedInit then
CUNGUI.RandomSeedInit = true
Duel.LoadScript("random.lua")
math.randomseed(_G.RANDOMSEED)
for i=1,10 do math.random(1000) end
end
if CUNGUI.RuleCard[0] and not CUNGUI.RuleCard[0]:IsLocation(LOCATION_REMOVED+LOCATION_ONFIELD) then
Duel.Remove(CUNGUI.RuleCard[0],POS_FACEUP,REASON_RULE)
end
......@@ -69,16 +75,7 @@ function CUNGUI.damop(e,tp,eg,ep,ev,re,r,rp)
local dice=Duel.TossCoin(tp,1)
if dice==1 then
if Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)>0 then
Duel.Damage(tp,1000,REASON_EFFECT)
Duel.Damage(tp,math.random(Duel.GetLP(tp)),REASON_EFFECT)
end
end
end
......@@ -9,7 +9,7 @@ CUNGUI.NoFunc = {}
CUNGUI.Success=false
function CUNGUI.TestEffect(te,e,tp,eg,ep,ev,re,r,rp)
local cod = e:GetCode()
local cod = te:GetCode()
local cond = te:GetCondition()
local cost = te:GetCost()
local targ = te:GetTarget()
......
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