Commit 30e7d511 authored by Nemo Ma's avatar Nemo Ma

fix

parent d6daa217
...@@ -112,6 +112,7 @@ function cm.initial_effect(c) ...@@ -112,6 +112,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.thop) e2:SetOperation(cm.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
cm.has_text_type=TYPE_SPIRIT
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end
local exc=nil local exc=nil
......
...@@ -39,7 +39,7 @@ function s.counterfilter(c) ...@@ -39,7 +39,7 @@ function s.counterfilter(c)
return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x104) return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x104)
end end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(44362883,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(id,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
...@@ -72,10 +72,10 @@ end ...@@ -72,10 +72,10 @@ end
--function s.activate(e,tp,eg,ep,ev,re,r,rp) --function s.activate(e,tp,eg,ep,ev,re,r,rp)
-- local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil) -- local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil)
-- if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then -- if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
-- Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) -- Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
-- local sg=g:Select(tp,1,1,nil) -- local sg=g:Select(tp,1,1,nil)
-- Duel.SendtoHand(sg,nil,REASON_EFFECT) -- Duel.SendtoHand(sg,nil,REASON_EFFECT)
-- Duel.ConfirmCards(1-tp,sg) -- Duel.ConfirmCards(1-tp,sg)
-- end -- end
--end --end
function s.poscon(e,tp,eg,ep,ev,re,r,rp) function s.poscon(e,tp,eg,ep,ev,re,r,rp)
......
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