Commit 44ae7789 authored by 聖園ミカ's avatar 聖園ミカ 🐟

hop

parent a8ac7d7f
Pipeline #31084 passed with stages
in 32 minutes and 29 seconds
--卡西米尔-荣光竞技场
Duel.LoadScript("c60010000.lua")
--Duel.LoadScript("c60010000.lua")
local cm,m,o=GetID()
function cm.initial_effect(c)
--Activate
......@@ -27,6 +27,26 @@ function cm.initial_effect(c)
local e3=e2:Clone()
e3:SetCode(EVENT_SUMMON_SUCCESS)
c:RegisterEffect(e3)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(cm.checkop)
c:RegisterEffect(e3)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then
SpaceCheck={}
for i=0,1 do
local g=Duel.GetMatchingGroup(nil,i,LOCATION_HAND+LOCATION_DECK,0,nil)
if #g==g:GetClassCount(Card.GetCode) then
SpaceCheck[i]=true
end
end
end
end
function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return SpaceCheck[tp]==true
......
--璞音 星转天歌
Duel.LoadScript("c60010000.lua")
--Duel.LoadScript("c60010000.lua")
local cm,m,o=GetID()
function cm.initial_effect(c)
--Activate
......@@ -25,6 +25,26 @@ function cm.initial_effect(c)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
--space check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_NO_TURN_RESET)
e3:SetCode(EVENT_PREDRAW)
e3:SetRange(0xff)
e3:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(cm.checkop)
c:RegisterEffect(e3)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if not SpaceCheck then
SpaceCheck={}
for i=0,1 do
local g=Duel.GetMatchingGroup(nil,i,LOCATION_HAND+LOCATION_DECK,0,nil)
if #g==g:GetClassCount(Card.GetCode) then
SpaceCheck[i]=true
end
end
end
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return SpaceCheck[tp]==true
......
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