Commit c471762a authored by TanakaKotoha's avatar TanakaKotoha

888

parent 481880f6
......@@ -108,7 +108,7 @@ end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.drcfilter,tp,LOCATION_MZONE,0,1,e:GetHandler(),tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.drcfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,e:GetHandler(),tp)
local g=Duel.SelectMatchingCard(tp,cm.drcfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler(),tp)
Duel.Release(g,REASON_COST)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -23,7 +23,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE)
e2:SetCode(EFFECT_CHANGE_ATTRIBUTE)
e2:SetCode(EFFECT_ADD_ATTRIBUTE)
e2:SetCondition(cm.condition)
e2:SetValue(ATTRIBUTE_LIGHT)
c:RegisterEffect(e2)
......
......@@ -16,7 +16,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
--tohand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetDescription(aux.Stringid(m,5))
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1,m)
......@@ -33,7 +33,7 @@ function cm.cost3(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.con3(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsDefensePos() and c:IsSetCard(0x2fb5)
return c:IsSetCard(0x2fb5)
end
function cm.thfilter(c)
return c:IsSetCard(0x1fb5) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
......@@ -102,7 +102,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return re:GetHandler():IsSetCard(0x1fbd) and loc==LOCATION_HAND
return re:GetHandler():IsSetCard(0x8fb5) and loc==LOCATION_HAND
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,12044025,0,0x4011,1800,1800,4,RACE_PSYCHO,ATTRIBUTE_DARK) 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