Commit 7c2b7df2 authored by Tachibana's avatar Tachibana

得得得得得

parent 58c5c06e
Pipeline #11505 passed with stages
in 28 minutes and 18 seconds
No preview for this file type
......@@ -24,14 +24,11 @@ function cm.initial_effect(c)
c:RegisterEffect(e9)
--damage reduce
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PRE_BATTLE_DAMAGE)
e3:SetCondition(cm.indcon)
e3:SetValue(aux.ChangeBattleDamage(1,HALF_DAMAGE))
e3:SetOperation(cm.rdop)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetValue(aux.ChangeBattleDamage(0,HALF_DAMAGE))
c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(m,0))
e5:SetType(EFFECT_TYPE_QUICK_O)
......@@ -48,6 +45,9 @@ end
function cm.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActiveType(TYPE_MONSTER)
end
function cm.rdop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(ep,ev/2)
end
function cm.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAttackPos() and e:GetHandler():IsCanChangePosition() end
......
......@@ -35,13 +35,14 @@ function Suyu_constel.p1(c)
return e1
end
function Suyu_constel.effect(c,code,id,loc,tg,op,cat,cost)
function Suyu_constel.effect(c,code,id,loc,tg,op,cat,cost,pro)
local tc=c
--summon with s/t
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(code,id))
e4:SetCategory(cat)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(pro)
e4:SetRange(loc)
e4:SetCountLimit(1,code+id)
if cost~=nil then
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e4:SetRange(LOCATION_HAND)
e4:SetCountLimit(1,m)
e4:SetCountLimit(1,m+1)
e4:SetCost(cm.cost)
e4:SetOperation(cm.op)
c:RegisterEffect(e4)
......
......@@ -18,7 +18,7 @@ function cm.initial_effect(c)
local e4=e3:Clone()
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e4)
local e6,e7=Suyu_constel.effect(c,m,3,LOCATION_MZONE,cm.mtg,cm.mop,CATEGORY_POSITION)
local e6,e7=Suyu_constel.effect(c,m,3,LOCATION_MZONE,cm.mtg,cm.mop,CATEGORY_POSITION,EFFECT_FLAG_CARD_TARGET)
end
function cm.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(m)==0 and Duel.CheckLPCost(tp,1000) 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