Commit 9cf1a923 authored by GuGu's avatar GuGu

Update c86379327.lua

parent 784407e1
Pipeline #32881 passed with stage
in 8 seconds
...@@ -46,13 +46,17 @@ function c86379327.initial_effect(c) ...@@ -46,13 +46,17 @@ function c86379327.initial_effect(c)
end end
end end
-- --
function c86379327.egfilter(c)
local d=c:GetBattleTarget()
return d and d:IsLocation(LOCATION_MZONE)
end
function c86379327.checkop(e,tp,eg,ep,ev,re,r,rp) function c86379327.checkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local tg=eg:Filter(c86379327.egfilter,nil)
local at=Duel.GetAttackTarget() local tc=tg:GetFirst()
if a:IsStatus(STATUS_BATTLE_DESTROYED) and at:IsStatus(STATUS_BATTLE_DESTROYED) then return end while tc do
local tc=a tc:GetBattleTarget():RegisterFlagEffect(86379327,RESET_EVENT+0x1fe0000,0,1)
if a:IsStatus(STATUS_BATTLE_DESTROYED) then tc=at end tc=tg:GetNext()
tc:RegisterFlagEffect(86379327,RESET_EVENT+0x1fe0000,0,1) end
end end
-- --
function c86379327.upfilter(c) function c86379327.upfilter(c)
......
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