Commit 59d21d21 authored by salix5's avatar salix5

Merge pull request #98 from nekrozar/patch-1

fix Mirror Force Dragon
parents 327cac36 0e4cf78e
...@@ -10,21 +10,16 @@ function c84687358.initial_effect(c) ...@@ -10,21 +10,16 @@ function c84687358.initial_effect(c)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_BE_BATTLE_TARGET) e2:SetCode(EVENT_BE_BATTLE_TARGET)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c84687358.descon1) e2:SetCondition(c84687358.descon1)
e2:SetTarget(c84687358.destg) e2:SetTarget(c84687358.destg)
e2:SetOperation(c84687358.desop) e2:SetOperation(c84687358.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=e2:Clone()
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_BECOME_TARGET) e3:SetCode(EVENT_BECOME_TARGET)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c84687358.descon2) e3:SetCondition(c84687358.descon2)
e3:SetTarget(c84687358.destg)
e3:SetOperation(c84687358.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c84687358.material_trap=44095762 c84687358.material_trap=44095762
...@@ -38,7 +33,8 @@ function c84687358.descon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +33,8 @@ function c84687358.descon2(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and eg:IsExists(c84687358.tgfilter,1,nil,tp) return rp~=tp and eg:IsExists(c84687358.tgfilter,1,nil,tp)
end end
function c84687358.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c84687358.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil)
and not e:GetHandler():IsStatus(STATUS_CHAINING) end
local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
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