Commit ada99b0f authored by GuGu's avatar GuGu

Update c99999035.lua

parent 999ea2f4
Pipeline #37478 passed with stage
in 22 seconds
......@@ -27,7 +27,7 @@ function c99999035.initial_effect(c)
e3:SetDescription(aux.Stringid(99999035,6))
e3:SetCategory(CATEGORY_DISABLE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLE_DESTROYING)
e3:SetCode(EVENT_BATTLE_DESTROYED)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(c99999035.cost)
e3:SetCondition(c99999035.con)
......@@ -104,9 +104,14 @@ function c99999035.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c99999035.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 c99999035.con(e,tp,eg,ep,ev,re,r,rp)
local rc=eg:GetFirst()
return rc:IsRelateToBattle() and rc:IsStatus(STATUS_OPPO_BATTLE) and rc:IsControler(tp) and rc:IsFaceup()
return eg and eg:Filter(c99999035.egfilter,nil,tp)
end
function c99999035.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) 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