Commit 999ea2f4 authored by GuGu's avatar GuGu

Update c99999034.lua

parent 5111e96c
Pipeline #37477 passed with stage
in 6 seconds
...@@ -26,8 +26,8 @@ function c99999034.initial_effect(c) ...@@ -26,8 +26,8 @@ function c99999034.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(99999034,2)) e3:SetDescription(aux.Stringid(99999034,2))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLE_DESTROYING) e3:SetCode(EVENT_BATTLE_DESTROYED)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,99999031) e3:SetCountLimit(1,99999031)
e3:SetCondition(c99999034.con) e3:SetCondition(c99999034.con)
...@@ -76,9 +76,14 @@ function c99999034.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,9 +76,14 @@ function c99999034.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c99999034.egfilter(c,tp)
local bc=c:GetBattleTarget()
if not bc then return false end
return c:IsRelateToBattle() and c:IsControler(1-tp) and c:IsPreviousLocation(LOCATION_MZONE)
and bc:IsControler(tp) and bc:IsType(TYPE_MONSTER) and bc:IsStatus(STATUS_OPPO_BATTLE)
end
function c99999034.con(e,tp,eg,ep,ev,re,r,rp) function c99999034.con(e,tp,eg,ep,ev,re,r,rp)
local rc=eg:GetFirst() return eg and eg:Filter(c99999034.egfilter,nil,tp)
return rc:IsRelateToBattle() and rc:IsStatus(STATUS_OPPO_BATTLE) and rc:IsControler(tp) and rc:IsFaceup()
end end
function c99999034.spfilter(c,e,tp) function c99999034.spfilter(c,e,tp)
return c:IsCode(99999035) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) return c:IsCode(99999035) and c:IsCanBeSpecialSummoned(e,0,tp,true,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