Commit ee876947 authored by Vee4's avatar Vee4 Committed by GitHub

Fix Amazoness Onslaught (#2954)

parent a76cc0be
...@@ -25,6 +25,7 @@ function c83407038.initial_effect(c) ...@@ -25,6 +25,7 @@ function c83407038.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLED) e3:SetCode(EVENT_BATTLED)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c83407038.rmcon)
e3:SetTarget(c83407038.rmtg) e3:SetTarget(c83407038.rmtg)
e3:SetOperation(c83407038.rmop) e3:SetOperation(c83407038.rmop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -70,6 +71,9 @@ end ...@@ -70,6 +71,9 @@ end
function c83407038.check(c,tp) function c83407038.check(c,tp)
return c and c:IsControler(tp) and c:IsSetCard(0x4) return c and c:IsControler(tp) and c:IsSetCard(0x4)
end end
function c83407038.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_EFFECT_ENABLED)
end
function c83407038.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c83407038.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetAttackTarget()~=nil if chk==0 then return Duel.GetAttackTarget()~=nil
and (c83407038.check(Duel.GetAttacker(),tp) or c83407038.check(Duel.GetAttackTarget(),tp)) end and (c83407038.check(Duel.GetAttacker(),tp) or c83407038.check(Duel.GetAttackTarget(),tp)) 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