Commit 5286d53b authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c64800193.lua

parent 13bc433d
Pipeline #30728 canceled with stages
in 1 minute and 55 seconds
...@@ -29,7 +29,6 @@ function s.initial_effect(c) ...@@ -29,7 +29,6 @@ function s.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,id+20000) e2:SetCountLimit(1,id+20000)
e2:SetCondition(s.con) e2:SetCondition(s.con)
e2:SetTarget(s.seqtg)
e2:SetOperation(s.seqop) e2:SetOperation(s.seqop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -81,22 +80,20 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,22 +80,20 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.con(e,tp,eg,ep,ev,re,r,rp) function s.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget()
end
function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
if chk==0 then return ec end return ec and ec:IsLevelAbove(1) and not ec:IsLevel(10)
end end
function s.seqop(e,tp,eg,ep,ev,re,r,rp) function s.seqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=c:GetFirstCardTarget() local tc=c:GetEquipTarget()
if tc and tc:IsLocation(LOCATION_MZONE) then if tc and tc:IsLocation(LOCATION_MZONE) and not tc:IsLevel(10) then
local e3=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP) e1:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_LEVEL) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetValue(10) e1:SetCode(EFFECT_CHANGE_LEVEL)
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(10)
c:RegisterEffect(e3) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
--cannot be target --cannot be target
local e7=Effect.CreateEffect(c) local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE) e7:SetType(EFFECT_TYPE_SINGLE)
...@@ -105,11 +102,11 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,11 +102,11 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp)
e7:SetRange(LOCATION_MZONE) e7:SetRange(LOCATION_MZONE)
e7:SetValue(aux.imval1) e7:SetValue(aux.imval1)
e7:SetReset(RESET_EVENT+RESETS_STANDARD) e7:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e7) tc:RegisterEffect(e7)
local e8=e7:Clone() local e8=e7:Clone()
e8:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e8:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e8:SetValue(aux.tgoval) e8:SetValue(aux.tgoval)
c:RegisterEffect(e8) tc:RegisterEffect(e8)
end end
end 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