Commit fa178451 authored by Nemo Ma's avatar Nemo Ma

fix

parent 6fe0fcdd
...@@ -54,6 +54,9 @@ function cm.initial_effect(c) ...@@ -54,6 +54,9 @@ function cm.initial_effect(c)
e5:SetCondition(cm.spcon2) e5:SetCondition(cm.spcon2)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function cm.mfilter(c)
return cm.AuroraBattlePrincess(c)
end
function cm.xccon1(e,tp,eg,ep,ev,re,r,rp) function cm.xccon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetHandler():GetFlagEffect(m)>0 and not Duel.IsPlayerAffectedByEffect(tp,40009707) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetHandler():GetFlagEffect(m)>0 and not Duel.IsPlayerAffectedByEffect(tp,40009707)
end end
......
...@@ -27,7 +27,7 @@ function cm.initial_effect(c) ...@@ -27,7 +27,7 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(m,1))
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetRange(LOCATION_GRAVE) e3:SetRange(LOCATION_GRAVE)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_CHAINING)
e3:SetCategory(CATEGORY_NEGATE+CATEGORY_TODECK) e3:SetCategory(CATEGORY_NEGATE+CATEGORY_TODECK)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetCountLimit(1,40009704) e3:SetCountLimit(1,40009704)
......
...@@ -36,7 +36,7 @@ function cm.condition1(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function cm.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter1,tp,0,LOCATION_MZONE,5,nil) return Duel.IsExistingMatchingCard(cm.cfilter1,tp,0,LOCATION_MZONE,5,nil)
end end
function cm.condition2(e,tp,eg,ep,ev,re,r,rp) function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(1-tp,LOCATION_MZONE,0)>1 return Duel.GetFieldGroupCount(1-tp,LOCATION_MZONE,0)>0
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)
local ct=Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0) local ct=Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)
......
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