Commit 50305a6c authored by POLYMER's avatar POLYMER

fix

parent 57041557
...@@ -64,7 +64,7 @@ function c11579812.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c11579812.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
local aaa=math.ceil(math.abs(Duel.GetLP(tp)-Duel.GetLP(1-tp))/2) local aaa=math.ceil(math.abs(Duel.GetLP(tp)-Duel.GetLP(1-tp))/2)
if tc:GetAttack()<=aaa then if tc:GetAttack()<aaa then
Duel.Remove(tc,POS_FACEDOWN,REASON_RULE,1-tp) Duel.Remove(tc,POS_FACEDOWN,REASON_RULE,1-tp)
else else
if Duel.Destroy(tc,REASON_EFFECT)~=0 then if Duel.Destroy(tc,REASON_EFFECT)~=0 then
......
...@@ -37,8 +37,8 @@ end ...@@ -37,8 +37,8 @@ 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 c=e:GetHandler() local c=e:GetHandler()
local lg=c:GetLinkedGroup() local lg=c:GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,cm.cfilter,3,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(tp,cm.cfilter,3,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,cm.cfilter,3,3,nil,lg) local g=Duel.SelectReleaseGroup(tp,cm.cfilter,3,3,nil,lg)
local ct=g:FilterCount(Card.IsType,nil,TYPE_NORMAL) local ct=g:FilterCount(Card.IsType,nil,TYPE_NORMAL)
e:SetValue(ct) e:SetValue(ct)
if ct>0 then if ct>0 then
......
...@@ -58,7 +58,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local g=eg:Filter(cm.filter1,nil,tp) local g=eg:Filter(cm.filter1,nil,tp)
local s={} local s={}
for tc in aux.Next(g) do table.insert(s,4-tc:GetSequence()) end for tc in aux.Next(g) do table.insert(s,4-aux.MZoneSequence(tc:GetSequence())) end
return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK,0,1,nil,tp,table.unpack(s)) return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK,0,1,nil,tp,table.unpack(s))
end end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
...@@ -71,8 +71,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,8 +71,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.filter2,nil,e,tp) local g=eg:Filter(cm.filter2,nil,e,tp)
local z,s=0,{} local z,s=0,{}
for tc in aux.Next(g) do for tc in aux.Next(g) do
z=z|(1<<(4-tc:GetSequence())) z=z|(1<<(4-aux.MZoneSequence(tc:GetSequence())))
table.insert(s,4-tc:GetSequence()) table.insert(s,4-aux.MZoneSequence(tc:GetSequence()))
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,tp,table.unpack(s)):GetFirst() local tc=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,tp,table.unpack(s)):GetFirst()
......
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
Duel.EnableGlobalFlag(GLOBALFLAG_SELF_TOGRAVE)
aux.AddCodeList(c,67073561) aux.AddCodeList(c,67073561)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
Duel.EnableGlobalFlag(GLOBALFLAG_SELF_TOGRAVE)
aux.AddCodeList(c,67073561) aux.AddCodeList(c,67073561)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
Duel.EnableGlobalFlag(GLOBALFLAG_SELF_TOGRAVE)
aux.AddCodeList(c,67073561) aux.AddCodeList(c,67073561)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
...@@ -21,14 +21,14 @@ function c9910564.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,14 +21,14 @@ function c9910564.spcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return re:IsActiveType(TYPE_MONSTER) and (LOCATION_HAND+LOCATION_GRAVE)&loc~=0 return re:IsActiveType(TYPE_MONSTER) and (LOCATION_HAND+LOCATION_GRAVE)&loc~=0
end end
function c9910564.costfilter(c) function c9910564.costfilter(c,e)
return c:IsSetCard(0x3951) and c:IsDiscardable() return c:IsSetCard(0x3951) and c:IsDiscardable() and c~=e:GetHandler()
end end
function c9910564.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c9910564.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsDiscardable() and Duel.IsExistingMatchingCard(c9910564.costfilter,tp,LOCATION_HAND,0,1,c) end if chk==0 then return c:IsDiscardable() and Duel.IsExistingMatchingCard(c9910564.costfilter,tp,LOCATION_HAND,0,1,c,re) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local g=Duel.SelectMatchingCard(tp,c9910564.costfilter,tp,LOCATION_HAND,0,1,1,c) local g=Duel.SelectMatchingCard(tp,c9910564.costfilter,tp,LOCATION_HAND,0,1,1,c,re)
g:AddCard(c) g:AddCard(c)
Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD)
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