Commit 0b0c3e21 authored by POLYMER's avatar POLYMER

fix

parent 466f8d49
...@@ -53,12 +53,14 @@ function cm.getfusionfilter(c) ...@@ -53,12 +53,14 @@ function cm.getfusionfilter(c)
end end
function cm.sprcon(e,c,tp) function cm.sprcon(e,c,tp)
local tp=e:GetHandler()
if c==nil then return true end if c==nil then return true end
local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil)
return g:GetClassCount(Card.GetCode)>=5 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 return g:GetClassCount(Card.GetCode)>=5 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c) function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local tp=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil)
if g:GetClassCount(Card.GetCode)>=5 then if g:GetClassCount(Card.GetCode)>=5 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
...@@ -60,12 +60,14 @@ function cm.getfusionfilter(c) ...@@ -60,12 +60,14 @@ function cm.getfusionfilter(c)
end end
function cm.sprcon(e,c,tp) function cm.sprcon(e,c,tp)
local tp=e:GetHandler()
if c==nil then return true end if c==nil then return true end
local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil)
return g:GetClassCount(Card.GetCode)>=5 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 return g:GetClassCount(Card.GetCode)>=5 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c) function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local tp=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil)
if g:GetClassCount(Card.GetCode)>=5 then if g:GetClassCount(Card.GetCode)>=5 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
...@@ -55,12 +55,14 @@ function cm.getfusionfilter(c) ...@@ -55,12 +55,14 @@ function cm.getfusionfilter(c)
end end
function cm.sprcon(e,c) function cm.sprcon(e,c)
local tp=e:GetHandler()
if c==nil then return true end if c==nil then return true end
local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil)
return g:GetClassCount(Card.GetCode)>=5 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 return g:GetClassCount(Card.GetCode)>=5 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c) function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local tp=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.getfusionfilter,tp,LOCATION_GRAVE,0,nil)
if g:GetClassCount(Card.GetCode)>=5 then if g:GetClassCount(Card.GetCode)>=5 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
...@@ -42,7 +42,7 @@ function c60152913.e3op(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c60152913.e3op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=c:GetMaterial() local g=c:GetMaterial()
if #g==0 then return end if #g==0 then return end
if g:IsExists(Card.IsOriginalCode,1,nil,60152901) then if g:IsExists(Card.IsOriginalCodeRule,1,nil,60152901) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60152901,1)) e1:SetDescription(aux.Stringid(60152901,1))
e1:SetCategory(CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DAMAGE)
......
...@@ -24,7 +24,7 @@ function c60152927.initial_effect(c) ...@@ -24,7 +24,7 @@ function c60152927.initial_effect(c)
e4:SetDescription(aux.Stringid(60152927,0)) e4:SetDescription(aux.Stringid(60152927,0))
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_FZONE)
e4:SetTarget(c60152927.e4tg) e4:SetTarget(c60152927.e4tg)
e4:SetOperation(c60152927.e4op) e4:SetOperation(c60152927.e4op)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -33,7 +33,7 @@ function c60152927.initial_effect(c) ...@@ -33,7 +33,7 @@ function c60152927.initial_effect(c)
e5:SetDescription(aux.Stringid(60152927,2)) e5:SetDescription(aux.Stringid(60152927,2))
e5:SetCategory(CATEGORY_SPECIAL_SUMMON) e5:SetCategory(CATEGORY_SPECIAL_SUMMON)
e5:SetType(EFFECT_TYPE_IGNITION) e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_FZONE)
e5:SetProperty(EFFECT_FLAG_NO_TURN_RESET) e5:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e5:SetCountLimit(1) e5:SetCountLimit(1)
e5:SetTarget(c60152927.e5tg) e5:SetTarget(c60152927.e5tg)
...@@ -50,14 +50,14 @@ function c60152927.e4tgfilter(c) ...@@ -50,14 +50,14 @@ function c60152927.e4tgfilter(c)
return c:IsSetCard(0x3b29) and c:IsType(TYPE_RITUAL) return c:IsSetCard(0x3b29) and c:IsType(TYPE_RITUAL)
end end
function c60152927.e4tg(e,tp,eg,ep,ev,re,r,rp,chk) function c60152927.e4tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60152927.e4tgfilter,tp,LOCATION_MZONE+LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c60152927.e4tgfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(60152927,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(60152927,1))
local lv=Duel.AnnounceLevel(tp,4,12) local lv=Duel.AnnounceLevel(tp,4,12)
e:SetLabel(lv) e:SetLabel(lv)
end end
function c60152927.e4op(e,tp,eg,ep,ev,re,r,rp) function c60152927.e4op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c60152927.e4tgfilter,tp,LOCATION_MZONE+LOCATION_ONFIELD,0,nil) local g=Duel.GetMatchingGroup(c60152927.e4tgfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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