Commit 7c0af18b authored by POLYMER's avatar POLYMER

fix

parent a2c20316
...@@ -38,7 +38,7 @@ function cm.xyzcheck(g) ...@@ -38,7 +38,7 @@ function cm.xyzcheck(g)
return g:GetFirst():GetAttribute()&g:GetNext():GetAttribute()>0 return g:GetFirst():GetAttribute()&g:GetNext():GetAttribute()>0
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 not te:GetOwner():IsOriginalSetCard(0x97f) and re:GetValue()~=11451480 return not re:GetOwner():IsOriginalSetCard(0x97f) and re:GetValue()~=11451480
end end
function cm.filter(c,re) function cm.filter(c,re)
return c:IsCanOverlay() and c:IsRelateToEffect(re) return c:IsCanOverlay() and c:IsRelateToEffect(re)
......
...@@ -64,10 +64,10 @@ function cm.efilter(e,c) ...@@ -64,10 +64,10 @@ function cm.efilter(e,c)
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,cm.rfilter,1,nil,e,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,cm.rfilter,1,nil,e,tp) end
local ct=Duel.GetMatchingGroupCount(cm.spfilter,tp,LOCATION_DECK,0,nil,e,tp) local ct=Duel.GetMatchingGroupCount(cm.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ct=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ct=1 end
local rg=Duel.SelectReleaseGroup(tp,cm.rfilter,1,ct,nil,e,tp) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,cm.rfilter,1,ct,nil,e,tp)
ct=Duel.Release(rg,REASON_COST) ct=Duel.Release(rg,REASON_COST)
e:SetLabel(ct) e:SetLabel(ct)
end end
...@@ -75,7 +75,7 @@ function cm.spfilter(c,e,tp) ...@@ -75,7 +75,7 @@ function cm.spfilter(c,e,tp)
return (aux.IsCodeListed(c,15005130) or c:IsCode(15005130)) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (aux.IsCodeListed(c,15005130) or c:IsCode(15005130)) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.rfilter(c,e,tp) function cm.rfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_MACHINE) and Duel.GetMZoneCount(tp,c)>=1 and c:IsReleasable() and c:IsFaceup() return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_MACHINE) and Duel.GetMZoneCount(tp,c)>=1 and c:IsReleasable(REASON_COST) and c:IsFaceup()
end end
function cm.spgcheck(g,ct) function cm.spgcheck(g,ct)
return g:GetCount()==ct return g:GetCount()==ct
......
--人理之诗 银之键 --人理之诗 银之键
function c22021890.initial_effect(c) function c22021890.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
...@@ -11,12 +13,12 @@ function c22021890.initial_effect(c) ...@@ -11,12 +13,12 @@ function c22021890.initial_effect(c)
e1:SetOperation(c22021890.activate) e1:SetOperation(c22021890.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c22021890.cfilter(c) function c22021890.cfilter(c,tp)
return not c:IsStatus(STATUS_BATTLE_DESTROYED) return Duel.GetMZoneCount(tp,c)>0
end end
function c22021890.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c22021890.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c22021890.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c22021890.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c22021890.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22021890.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c22021890.target(e,tp,eg,ep,ev,re,r,rp,chk) function c22021890.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -15,9 +15,8 @@ function cm.initial_effect(c) ...@@ -15,9 +15,8 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,1)) e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_DRAW) e2:SetCategory(CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EVENT_MOVE) e2:SetCode(EVENT_MOVE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCondition(cm.drcon) e2:SetCondition(cm.drcon)
e2:SetTarget(cm.drtg) e2:SetTarget(cm.drtg)
e2:SetOperation(cm.drop) e2:SetOperation(cm.drop)
......
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