Commit 655eaa47 authored by GuGu's avatar GuGu

Delete c19500150.lua

parent 876b63c2
Pipeline #29172 passed with stage
in 12 seconds
--七色人形剧·临场发挥
function c19500150.initial_effect(c)
--
-- local e1=Effect.CreateEffect(c)
-- e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
--e1:SetCode(EVENT_DESTROYED)
-- e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
-- e1:SetCountLimit(1,19500151)
-- e1:SetOperation(c19500150.op)
-- c:RegisterEffect(e1)
--disable
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(19500150,2))
e3:SetCategory(CATEGORY_DISABLE+CATEGORY_REMOVE)
e3:SetType(EFFECT_TYPE_ACTIVATE)
e3:SetCode(EVENT_CHAINING)
e3:SetCountLimit(1,19500150)
e3:SetCondition(c19500150.condition2)
e3:SetTarget(c19500150.target2)
e3:SetOperation(c19500150.activate2)
c:RegisterEffect(e3)
end
--function c19500150.op(e,tp,eg,ep,ev,re,r,rp)
--inactivatable
-- local e4=Effect.CreateEffect(e:GetHandler())
--e4:SetType(EFFECT_TYPE_FIELD)
-- e4:SetCode(EFFECT_CANNOT_INACTIVATE)
--e4:SetValue(c19500150.effectfilter)
-- e4:SetReset(RESET_PHASE+PHASE_END)
-- Duel.RegisterEffect(e4,tp)
-- local e5=e4:Clone()
-- e5:SetCode(EFFECT_CANNOT_DISEFFECT)
-- Duel.RegisterEffect(e5,tp)
-- local e10=Effect.CreateEffect(e:GetHandler())
-- e10:SetType(EFFECT_TYPE_FIELD)
-- e10:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_PLAYER_TARGET)
-- e10:SetReset(RESET_PHASE+PHASE_END)
-- e10:SetTargetRange(1,0)
-- e10:SetDescription(aux.Stringid(19500150,0))
-- Duel.RegisterEffect(e10,tp)
--end
function c19500150.effectfilter(e,ct)
local p=e:GetHandler():GetControler()
local te,tp,loc=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
local tc=te:GetHandler()
return p==tp and (tc:IsSetCard(0x186) or tc:IsSetCard(0x300)) and bit.band(loc,LOCATION_ONFIELD)~=0
end
function c19500150.condition2(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsChainDisablable(ev) then return false end
local te,p=Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
return te and (te:GetHandler():IsSetCard(0x186) or te:GetHandler():IsSetCard(0x300)) and te:IsActiveType(TYPE_MONSTER) and p==tp
end
function c19500150.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local ng=Group.CreateGroup()
local dg=Group.CreateGroup()
for i=1,ev do
local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
if tgp~=tp and (te:IsActiveType(TYPE_MONSTER) or te:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(i) then
local tc=te:GetHandler()
ng:AddCard(tc)
end
end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,ng,ng:GetCount(),0,0)
end
function c19500150.activate2(e,tp,eg,ep,ev,re,r,rp)
local dg=Group.CreateGroup()
for i=1,ev do
local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
if tgp~=tp then
Duel.NegateActivation(i)
end
end
end
\ No newline at end of file
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