Commit 5a7adcac authored by TanakaKotoha's avatar TanakaKotoha

fnmdp

parent 3f5a7398
No preview for this file type
...@@ -19,7 +19,6 @@ function cm.initial_effect(c) ...@@ -19,7 +19,6 @@ function cm.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET) e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,m) e4:SetCountLimit(1,m)
e4:SetHintTiming(TIMING_DAMAGE_STEP)
e4:SetCondition(cm.descon1) e4:SetCondition(cm.descon1)
e4:SetCost(cm.atkcost) e4:SetCost(cm.atkcost)
e4:SetTarget(cm.atktg) e4:SetTarget(cm.atktg)
...@@ -28,6 +27,7 @@ function cm.initial_effect(c) ...@@ -28,6 +27,7 @@ function cm.initial_effect(c)
local e5=e4:Clone() local e5=e4:Clone()
e5:SetType(EFFECT_TYPE_QUICK_O) e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetCode(EVENT_FREE_CHAIN) e5:SetCode(EVENT_FREE_CHAIN)
e5:SetHintTiming(TIMING_DAMAGE_STEP)
e5:SetCondition(cm.descon2) e5:SetCondition(cm.descon2)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
...@@ -37,13 +37,15 @@ end ...@@ -37,13 +37,15 @@ end
function cm.val(e,c) function cm.val(e,c)
return Duel.GetMatchingGroup(cm.atkfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,nil):GetClassCount(Card.GetCode)*300 return Duel.GetMatchingGroup(cm.atkfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,nil):GetClassCount(Card.GetCode)*300
end end
function cm.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_TRAP)
end
function cm.descon1(e,tp,eg,ep,ev,re,r,rp) function cm.descon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function cm.descon2(e,tp,eg,ep,ev,re,r,rp) function cm.descon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and aux.dscon() return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and aux.dscon()
end end
function cm.atkfilter1(c,tp) function cm.atkfilter1(c,tp)
return c:GetBaseAttack()>0 and Duel.IsExistingTarget(cm.atkfilter2,tp,LOCATION_MZONE,0,1,c) return c:GetBaseAttack()>0 and Duel.IsExistingTarget(cm.atkfilter2,tp,LOCATION_MZONE,0,1,c)
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