Commit 45b67fa2 authored by wind2009's avatar wind2009

Fix 刻まれし魔レクストレメンデ

parent 2015683c
Pipeline #30806 passed with stages
in 3 minutes and 52 seconds
...@@ -21,7 +21,7 @@ function s.initial_effect(c) ...@@ -21,7 +21,7 @@ function s.initial_effect(c)
e1:SetTarget(s.hsptg) e1:SetTarget(s.hsptg)
e1:SetOperation(s.hspop) e1:SetOperation(s.hspop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--draw and destory --place
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0)) e2:SetDescription(aux.Stringid(id,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
...@@ -73,8 +73,7 @@ function s.mvfilter(c,tp) ...@@ -73,8 +73,7 @@ function s.mvfilter(c,tp)
if not c:IsAbleToChangeControler() then return false end if not c:IsAbleToChangeControler() then return false end
r=LOCATION_REASON_CONTROL r=LOCATION_REASON_CONTROL
end end
return c:IsFaceup() return c:IsFaceup() and Duel.GetLocationCount(c:GetOwner(),LOCATION_SZONE,tp,r)>0
and Duel.GetLocationCount(c:GetOwner(),LOCATION_SZONE,tp,r)>0
end end
function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.mvfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.mvfilter(chkc,tp) end
......
...@@ -66,7 +66,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.eqfilter(c) function s.eqfilter(c)
return c:IsSetCard(0x1b0) and bit.band(c:GetType(),TYPE_SPELL+TYPE_EQUIP)==TYPE_SPELL+TYPE_EQUIP return c:IsFaceup() and c:IsSetCard(0x1b0) and bit.band(c:GetType(),TYPE_SPELL+TYPE_EQUIP)==TYPE_SPELL+TYPE_EQUIP
end end
function s.imcon(e) function s.imcon(e)
local sg=e:GetHandler():GetEquipGroup() local sg=e:GetHandler():GetEquipGroup()
......
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