Commit c4633d11 authored by Tachibana's avatar Tachibana

eme

parent 1a978f74
Pipeline #7074 passed with stages
in 34 minutes and 7 seconds
...@@ -19,6 +19,7 @@ function cm.initial_effect(c) ...@@ -19,6 +19,7 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCost(cm.cost)
e2:SetCondition(cm.condition) e2:SetCondition(cm.condition)
e2:SetTarget(cm.target) e2:SetTarget(cm.target)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
...@@ -60,11 +61,11 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,11 +61,11 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function cm.mttg(e,c) function cm.mttg(e,c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() and c:IsRace(RACE_FAIRY)
end end
function cm.mtval(e,c) function cm.mtval(e,c)
if not c then return false end if not c then return false end
return c:IsRace(RACE_FAIRY) return true
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.rmc,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,re) end if chk==0 then return Duel.IsExistingMatchingCard(cm.rmc,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,re) end
...@@ -73,7 +74,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,7 +74,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE and Duel.IsChainNegatable(ev) return re:IsActiveType(TYPE_MONSTER) and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&LOCATION_MZONE~=0 and Duel.IsChainNegatable(ev)
end end
function cm.rmc(c,att) function cm.rmc(c,att)
return c:IsAbleToRemoveAsCost() and c:IsAttribute(att) return c:IsAbleToRemoveAsCost() and c:IsAttribute(att)
......
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