Commit 8495b051 authored by GuGu's avatar GuGu

Update c19114517.lua

parent ab4101a0
Pipeline #32896 passed with stage
in 9 seconds
...@@ -8,7 +8,6 @@ function c19114517.initial_effect(c) ...@@ -8,7 +8,6 @@ function c19114517.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,19114517)
e1:SetCost(c19114517.cost) e1:SetCost(c19114517.cost)
e1:SetOperation(c19114517.operation) e1:SetOperation(c19114517.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -17,7 +16,7 @@ function c19114517.initial_effect(c) ...@@ -17,7 +16,7 @@ function c19114517.initial_effect(c)
e5:SetCategory(CATEGORY_DISABLE+CATEGORY_REMOVE) e5:SetCategory(CATEGORY_DISABLE+CATEGORY_REMOVE)
e5:SetType(EFFECT_TYPE_QUICK_O) e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetCode(EVENT_CHAINING) e5:SetCode(EVENT_CHAINING)
e5:SetRange(LOCATION_GRAVE+LOCATION_ONFIELD) e5:SetRange(LOCATION_GRAVE+LOCATION_MZONE)
e5:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e5:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e5:SetCondition(c19114517.condition5) e5:SetCondition(c19114517.condition5)
e5:SetCost(c19114517.cost5) e5:SetCost(c19114517.cost5)
...@@ -35,7 +34,7 @@ function c19114517.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +34,7 @@ function c19114517.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(4,19114517) e1:SetCountLimit(3,19114517)
e1:SetCondition(c19114517.drcon1) e1:SetCondition(c19114517.drcon1)
e1:SetOperation(c19114517.drop1) e1:SetOperation(c19114517.drop1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
...@@ -44,7 +43,7 @@ function c19114517.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +43,7 @@ function c19114517.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(4,19114517) e2:SetCountLimit(3,19114517)
e2:SetCondition(c19114517.regcon) e2:SetCondition(c19114517.regcon)
e2:SetOperation(c19114517.regop) e2:SetOperation(c19114517.regop)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
...@@ -89,13 +88,13 @@ function c19114517.drop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,13 +88,13 @@ function c19114517.drop2(e,tp,eg,ep,ev,re,r,rp)
local sg=g:RandomSelect(tp,n) local sg=g:RandomSelect(tp,n)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
function c19114517.cfilter(c) function c19114517.cfilter(c,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and (c:IsSetCard(0x186) or c:IsSetCard(0x300)) and c:IsControler(tp) return c:IsLocation(LOCATION_GRAVE) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and (c:IsSetCard(0x186) or c:IsSetCard(0x300)) and c:IsControler(tp)
end end
function c19114517.condition5(e,tp,eg,ep,ev,re,r,rp) function c19114517.condition5(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:IsExists(c19114517.cfilter,1,nil) and Duel.IsChainNegatable(ev) return tg and tg:IsExists(c19114517.cfilter,1,nil,tp) and Duel.IsChainNegatable(ev)
end end
c19114517[0]=true c19114517[0]=true
c19114517[1]=true c19114517[1]=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