Commit 0fb7bba0 authored by 聖園ミカ's avatar 聖園ミカ 🐟

hop

parent 0702468e
......@@ -7,7 +7,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE+CATEGORY_DECKDES)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e1:SetCost(s.cost)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
......
......@@ -2,6 +2,7 @@
xpcall(function() dofile("expansions/script/c16199990.lua") end,function() dofile("script/c16199990.lua") end)
local m,cm=rk.set(16114226,nil,1)
function cm.initial_effect(c)
aux.AddCodeList(c,16114205)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
......
......@@ -18,15 +18,14 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,2))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_CUSTOM+m)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CAN_FORBIDDEN)
e2:SetCode(EVENT_RECOVER)
e2:SetRange(LOCATION_REMOVED)
e2:SetCountLimit(1,m)
e2:SetCondition(cm.spcon2)
e2:SetTarget(cm.sptg2)
e2:SetOperation(cm.spop2)
c:RegisterEffect(e2)
aux.RegisterMergedDelayedEvent(c,m,EVENT_RECOVER)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
......@@ -81,7 +80,7 @@ function cm.tgcheck(c,tp)
end
function cm.tgfilter(c,tc)
local typ=tc:GetType()&0x7
return not c:IsType(typ) and c:IsAbleToGrave()
return not c:IsType(typ) and c:IsAbleToGrave() and c:IsSetCard(0xccf)
end
function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -16,7 +16,7 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_CUSTOM+m)
e2:SetCode(EVENT_RECOVER)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_FZONE)
e2:SetCountLimit(1)
......@@ -24,7 +24,6 @@ function cm.initial_effect(c)
e2:SetTarget(cm.cptg)
e2:SetOperation(cm.cpop)
c:RegisterEffect(e2)
aux.RegisterMergedDelayedEvent(c,m,EVENT_RECOVER)
--set
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,2))
......
......@@ -2,6 +2,7 @@
xpcall(function() dofile("expansions/script/c16199990.lua") end,function() dofile("script/c16199990.lua") end)
local m,cm=rk.set(16114288)
function cm.initial_effect(c)
aux.AddCodeList(c,16114247)
--damage
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......
if not pcall(function() dofile("expansions/script/c16101100.lua") end) then dofile("script/c16101100.lua") end
if rk then return end
rk=rk or {}
local loc_table_for_reikai={
['dk'] = LOCATION_DECK,
......
......@@ -61,14 +61,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e6)
end
function cm.atkval(e,c)
local atk=c:GetAttack()
if c:GetControler()~=e:GetHandlerPlayer() then atk=-atk/2 end
return atk
return math.ceil(c:GetAttack())
end
function cm.defval(e,c)
local atk=c:GetAttack()
if c:GetControler()~=e:GetHandlerPlayer() then atk=-atk/2 end
return atk
return math.ceil(c:GetDefense())
end
function cm.atkval1(e,c)
return math.ceil(-c:GetAttack()/2)
......
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