Commit c8b2b2ff authored by mercury233's avatar mercury233 Committed by GitHub

fix アヴァロンの魔女モルガン

parent 00e28144
...@@ -5,6 +5,7 @@ function c24027078.initial_effect(c) ...@@ -5,6 +5,7 @@ function c24027078.initial_effect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,24027078) e1:SetCountLimit(1,24027078)
e1:SetCondition(c24027078.condition) e1:SetCondition(c24027078.condition)
...@@ -20,7 +21,8 @@ function c24027078.filter2(c) ...@@ -20,7 +21,8 @@ function c24027078.filter2(c)
return c:IsFaceup() and c:IsSetCard(0x207a) and c:IsType(TYPE_EQUIP) return c:IsFaceup() and c:IsSetCard(0x207a) and c:IsType(TYPE_EQUIP)
end end
function c24027078.condition(e,tp,eg,ep,ev,re,r,rp) function c24027078.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.IsExistingMatchingCard(c24027078.filter1,tp,LOCATION_MZONE,0,1,nil) return ep~=tp and Duel.IsChainNegatable(ev)
and Duel.IsExistingMatchingCard(c24027078.filter1,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(c24027078.filter2,tp,LOCATION_ONFIELD,0,1,nil) and Duel.IsExistingMatchingCard(c24027078.filter2,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c24027078.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c24027078.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
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