Commit bc1f71a9 authored by mercury233's avatar mercury233

fix

parent 16a500a2
...@@ -16,26 +16,20 @@ function c4149689.initial_effect(c) ...@@ -16,26 +16,20 @@ function c4149689.initial_effect(c)
--destroy --destroy
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(4149689,0)) e3:SetDescription(aux.Stringid(4149689,0))
e3:SetCategory(CATEGORY_DESTROY) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetTarget(c4149689.destg)
e3:SetOperation(c4149689.desop) e3:SetOperation(c4149689.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c4149689.aclimit(e,re,tp) function c4149689.aclimit(e,re,tp)
local rc=re:GetHandler() local rc=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and rc:IsSummonType(SUMMON_TYPE_FLIP) and rc:IsLevelBelow(2) return re:IsActiveType(TYPE_MONSTER) and re:GetActivateLocation()==LOCATION_MZONE and rc:GetFlagEffect(4149689)~=0
end
function c4149689.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:GetFirst():IsLevelBelow(2) end
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end end
function c4149689.desop(e,tp,eg,ep,ev,re,r,rp) function c4149689.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsLevelBelow(2) then if tc:IsLevelBelow(2) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
tc:RegisterFlagEffect(4149689,RESET_EVENT+RESETS_STANDARD,0,1)
end end
end 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