Commit 08cc6622 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 9526005d
...@@ -17,7 +17,7 @@ function cm.filter1(c,e,tp) ...@@ -17,7 +17,7 @@ function cm.filter1(c,e,tp)
return c:IsLevel(1) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevel(1) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.filter2(c) function cm.filter2(c)
return c:IsFaceup() and c:IsLevelAbove(1) return c:IsFaceup()
end end
function cm.fselect(sg,tp) function cm.fselect(sg,tp)
local mg=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_MZONE,0,nil) local mg=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_MZONE,0,nil)
...@@ -37,7 +37,7 @@ function cm.xyztg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,7 +37,7 @@ function cm.xyztg(e,tp,eg,ep,ev,re,r,rp,chk)
if ft>4 then ft=4 end if ft>4 then ft=4 end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,4) if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,4)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0
and mg:CheckSubGroup(cm.fselect,1,ft,tp) end and mg:CheckSubGroup(cm.fselect,1,ft,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_EXTRA)
end end
......
...@@ -34,8 +34,8 @@ if not s.STRING_INVALID_AND_RETRY then ...@@ -34,8 +34,8 @@ if not s.STRING_INVALID_AND_RETRY then
end end
local STRING_INVALID_AND_ESCAPE = aux.Stringid(id,11) local STRING_INVALID_AND_ESCAPE = aux.Stringid(id,11)
local STRING_ASK_OPPONENT = aux.Stringid(id,12) local STRING_ASK_OPPONENT = aux.Stringid(id,12)
local STRING_SHOW_X = aux.Stringid(id,13) local STRING_SHOW_X = aux.Stringid(id,13)
local FLAG_TOTAL_DECLARED_LEVEL = id local FLAG_TOTAL_DECLARED_LEVEL = id
...@@ -138,7 +138,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -138,7 +138,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
else else
local tc=Duel.CreateToken(tp,code) local tc=Duel.CreateToken(tp,code)
local te,ceg,cep,cev,cre,cr,crp=tc:CheckActivateEffect(false,true,true) local te,ceg,cep,cev,cre,cr,crp=tc:CheckActivateEffect(true,true,true)
Duel.ClearTargetCard() Duel.ClearTargetCard()
tc:CreateEffectRelation(te) tc:CreateEffectRelation(te)
local target=te:GetTarget() local target=te:GetTarget()
......
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