Commit e0600d14 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c50224305.lua

parent 4ba4db7b
Pipeline #30537 passed with stages
in 31 minutes and 34 seconds
......@@ -25,7 +25,7 @@ function c50224305.initial_effect(c)
e2:SetDescription(aux.Stringid(50224305,0))
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC_G)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_BOTH_SIDE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_PZONE)
e2:SetCondition(c50224305.pendcon)
e2:SetOperation(c50224305.pendop)
......@@ -89,9 +89,9 @@ function c50224305.pendcon(e,c,og)
local lscale=0
local rscale=11
local ft=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_FUSION)
local ft1=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_LINK)--空的额外怪兽区域或者连接区
local ft2=ft-ft1--所有空区域-空的额外怪兽区域或者连接区
local ft3=Duel.GetLocationCount(tp,LOCATION_MZONE)--空的主要怪兽区域
local ft1=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_LINK)
local ft2=ft-ft1
local ft3=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return false end
local loc=0
if ft1>0 then loc=loc+LOCATION_EXTRA end
......@@ -107,8 +107,8 @@ function c50224305.pendop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
local lscale=0
local rscale=11
local ft=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_FUSION)--所有空区域
local ft1=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_LINK)--空的额外怪兽区域或者连接区
local ft2=ft-ft1--所有空区域-空的额外怪兽区域或者连接区
local ft1=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_LINK)--空的额外怪兽区域或者连接区,,即只能从额外灵摆召唤的区域
local ft2=ft-ft1--所有空区域-空的额外怪兽区域或者连接区,即只能从手卡灵摆召唤的区域
local ft3=Duel.GetLocationCount(tp,LOCATION_MZONE)--空的主要怪兽区域
if Duel.IsPlayerAffectedByEffect(tp,59822133) then
if ft1>0 then ft1=1 end
......@@ -116,6 +116,7 @@ function c50224305.pendop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
ft=1
end
local ect=(c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]) or ft
--受到效果影响导致能特召的最大数量
if ect~=nil then ft=math.min(ft,ect) end
local loc=0
if ft1>0 then loc=loc+LOCATION_EXTRA end
......@@ -147,7 +148,8 @@ function c50224305.pendop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
ce=eset[op+1]
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=tg:SelectSubGroup(tp,c50224305.gcheck,true,1,ft,ft1,ft2,ft3,ect,ft)
local g=tg:SelectSubGroup(tp,c50224305.gcheck,true,1,math.min(ft,#tg),ft1,ft2,ft3,ect,ft)
if not g then return end
if #g==0 then return end
if ce then
Duel.Hint(HINT_CARD,0,ce:GetOwner():GetOriginalCode())
......
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