Commit 5cc53c56 authored by Tachibana's avatar Tachibana

得得得得得

parent fd93fbd4
Pipeline #13243 passed with stages
in 36 minutes and 54 seconds
......@@ -35,12 +35,15 @@ function cm.splimit(e,se,sp,st)
return se:IsHasType(EFFECT_TYPE_ACTIONS)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0)
return #g==0 and eg:IsExists(cm.filter,1,nil,tp,rp) and eg:Filter(Card.IsControler,nil,tp):GetCount()==1 and Duel.GetFieldGroupCount(tp,LOCATION_SZONE,0)==0
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0):Filter(cm.repfilter,nil,tp)
return #g==0 and eg:IsExists(cm.filter,1,nil,tp,rp) and eg:Filter(Card.IsControler,nil,tp):GetCount()==1 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end
function cm.filter(c,tp,rp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and (c:IsReason(REASON_BATTLE) or (rp==1-tp and c:IsReason(REASON_EFFECT)))
end
function cm.repfilter(c,tp)
return c:IsLocation(LOCATION_SZONE) and c:GetSequence()<5 and c:IsControler(tp)
end
function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
if Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) then
......
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