Commit b4007f94 authored by Tachibana's avatar Tachibana

得得得得得

parent 001c3d33
Pipeline #11559 passed with stages
in 32 minutes and 45 seconds
#[2022.4 DIY NiuNiu]
!2022.4 DIY NiuNiu
#[2022.4 DIY 17Cards]
!2022.4 DIY 17Cards
#1
00113217 1 --小红花
......
......@@ -43,7 +43,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4)
end
function cm.chainop(e,tp,eg,ep,ev,re,r,rp)
if (re:GetHandler()==e:GetHandler() or re:GetHandler()IsCode(12026000)) and ep==tp then
if (re:GetHandler()==e:GetHandler() or re:GetHandler():IsCode(12026000)) and ep==tp then
Duel.SetChainLimit(cm.chainlm)
end
end
......
......@@ -90,8 +90,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(c,REASON_COST)
end
function cm.spfilter(c,e,tp)
return c:IsSetCard(0x1fbd) and
and c:IsRace(RACE_FAIRY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x1fbd) and c:IsRace(RACE_FAIRY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
......
......@@ -52,7 +52,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local dg=sg:Select(tp,1,1,nil)
Duel.Destroy(dg,REASON_EFFECT)
end
if e:GetLabelObject() end e:GetLabelObject():GetFirst():IsSetCard(0xcfa8) and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
local fc=e:GetLabelObject():GetFirst()
if fc:IsSetCard(0xcfa8) and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then
Duel.Draw(tp,1,REASON_EFFECT)
end
end
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -7,7 +7,6 @@ function cm.initial_effect(c)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(cm.txtcon)
e0:SetOperation(cm.txtop)
c:RegisterEffect(e0)
local e1=Effect.CreateEffect(c)
......
......@@ -7,7 +7,7 @@ function c24865325.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e2:SetCountLimit(1,m)
e1:SetCountLimit(1,m)
e1:SetHintTiming(TIMING_BATTLE_END)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,1)
e1:SetTarget(cm.sumlimit)
e1:SetTarget(cm.splimit)
c:RegisterEffect(e1)
end
function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
......
--双重升阶魔法 善恶双生-希儿
local m=335001073
local m=33503673
local cm=_G["c"..m]
function cm.initial_effect(c)
--Activate
......
--晶属念灵体的增乱爆发
local m=35700213
local m=35700214
local cm=_G["c"..m]
if not pcall(function() require("expansions/script/c35700200") end) then require("script/c35700200") end
function cm.initial_effect(c)
......
......@@ -14,7 +14,7 @@ function c67200274.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetTarget(c67200062.antarget)
e2:SetTarget(c67200274.antarget)
c:RegisterEffect(e2)
--cannot release
local e4=Effect.CreateEffect(c)
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_LEAVE_FIELD)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetCountLimit(1)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e3:SetCondition(cm.spcon)
e3:SetTarget(cm.sptg)
e3:SetOperation(cm.spop)
......
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