Commit f72ee549 authored by Nemo Ma's avatar Nemo Ma

fix

parent 5ba9764f
......@@ -45,7 +45,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local sa=c:IsLocation(LOCATION_HAND) and Duel.GetFlagEffect(tp,m+1)==0
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
local rg=Duel.GetMatchingGroup(cm.costfilter,tp,LOCATION_HAND,0,c)
if chk==0 then return (sa or sb) and #rg>0 and rg:CheckSubGroup(cm.fselect,1,2,nil) end
if chk==0 then return (sa or sb) and #rg>0 and rg:CheckSubGroup(cm.fselect,1,2,nil,tp) end
if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then
......@@ -54,7 +54,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND)
end
function cm.fselect(g,c)
function cm.fselect(g,c,tp)
return g:IsExists(cm.costfilter,1,c) and Duel.IsExistingMatchingCard(cm.thfilter2,tp,LOCATION_DECK,0,1,nil,g)
end
function cm.thfilter2(c,g)
......@@ -65,7 +65,7 @@ function cm.fselect2(g,c)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_HAND,0,nil)
--if not rg:CheckSubGroup(cm.fselect,1,2,aux.ExceptThisCard(e)) then return end
--if not rg:CheckSubGroup(cm.fselect,1,2,aux.ExceptThisCard(e),tp) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tg=rg:SelectSubGroup(tp,cm.fselect2,false,1,2,aux.ExceptThisCard(e))
if Duel.Remove(tg,POS_FACEUP,REASON_EFFECT)>0 then
......
......@@ -4,11 +4,12 @@ local cm=_G["c"..m]
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_DISABLE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22348107+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c22348107.target)
e1:SetOperation(c22348107.activate)
c:RegisterEffect(e1)
......
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