Commit 7c0af18b authored by POLYMER's avatar POLYMER

fix

parent a2c20316
......@@ -38,7 +38,7 @@ function cm.xyzcheck(g)
return g:GetFirst():GetAttribute()&g:GetNext():GetAttribute()>0
end
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
function cm.filter(c,re)
return c:IsCanOverlay() and c:IsRelateToEffect(re)
......
......@@ -64,10 +64,10 @@ function cm.efilter(e,c)
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
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)
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)
e:SetLabel(ct)
end
......@@ -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)
end
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
function cm.spgcheck(g,ct)
return g:GetCount()==ct
......
--人理之诗 银之键
function c22021890.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......@@ -11,12 +13,12 @@ function c22021890.initial_effect(c)
e1:SetOperation(c22021890.activate)
c:RegisterEffect(e1)
end
function c22021890.cfilter(c)
return not c:IsStatus(STATUS_BATTLE_DESTROYED)
function c22021890.cfilter(c,tp)
return Duel.GetMZoneCount(tp,c)>0
end
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
local g=Duel.SelectReleaseGroup(tp,c22021890.cfilter,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c22021890.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22021890.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST)
end
function c22021890.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -15,9 +15,8 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_DRAW)
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:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCondition(cm.drcon)
e2:SetTarget(cm.drtg)
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