Commit 6db180e1 authored by JoyJ's avatar JoyJ

update srv5555 skills

parent a566c205
--村规决斗:携手共尽
--所有起动效果和诱发即时效果变为双方都能使用的效果。
--后攻开局时多抽1张。
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)
end
OrigSetType(e,typ)
end
-- 1 more draw
local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EVENT_ADJUST)
e1:SetOperation(function(e)
Duel.Draw(1,1,REASON_RULE)
e:Reset()
end)
Duel.RegisterEffect(e1,0)
end
\ No newline at end of file
--村规决斗:逆转裁判
--效果处理时,对方可以支付1000点基本分。
--那个效果处理完成后,对方以对方的视角再处理1次效果。
--细则:
--适用于任何效果,但处理后不一定有意义。
--比如旋风即使再处理一次效果,对象也不会有所改变;
--又比如天空侠虽然可以二次处理效果,但对方的卡组未必有合适的卡可拿。
local OrigRegister = Card.RegisterEffect
local OrigClone = Effect.Clone
CUNGUI = {}
CUNGUI.EffectSaver={}
function Auxiliary.PreloadUds()
Card.RegisterEffect = function(c,e,b)
local typ = e:GetType()
if (typ & 0x7d0)>0 and e:GetOperation()~=nil then
CUNGUI.EffectSaver[e] = e:GetOperation()
e:SetOperation(CUNGUI.Operation)
end
return OrigRegister(c,e,b)
end
Effect.Clone = function(e)
local ce = OrigClone(e)
if e:GetOperation() == CUNGUI.Operation then
ce:SetOperation(CUNGUI.EffectSaver[e])
end
return ce
end
end
function CUNGUI.Operation(e,tp,eg,ep,ev,re,r,rp)
local runDouble = false
if Duel.CheckLPCost(1-tp,1000) and Duel.SelectYesNo(1-tp,aux.Stringid(57496978,0)) then
Duel.PayLPCost(1-tp,1000)
runDouble = true
end
local result = CUNGUI.EffectSaver[e](e,tp,eg,ep,ev,re,r,rp)
if runDouble then
Duel.BreakEffect()
result = CUNGUI.EffectSaver[e](e,1-tp,eg,ep,ev,re,r,rp)
end
return result
end
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