Commit cf1da6a1 authored by 聖園ミカ's avatar 聖園ミカ 🐟

hop

parent fc37bad9
Pipeline #31377 passed with stages
in 29 minutes and 41 seconds
No preview for this file type
...@@ -55,7 +55,7 @@ function cm.actlim(e,re,tp) ...@@ -55,7 +55,7 @@ function cm.actlim(e,re,tp)
and re:GetCode()~=EVENT_SPSUMMON_SUCCESS then return end and re:GetCode()~=EVENT_SPSUMMON_SUCCESS then return end
local rc=re:GetHandler() local rc=re:GetHandler()
local p=e:GetHandlerPlayer() local p=e:GetHandlerPlayer()
return rc:IsControler(1-p) and Duel.IsExistingMatchingCard(aux.AND(Card.IsFaceupEx,Card.IsCode),p,LOCATION_GRAVE+LOCATION_ONFIELD,LOCATION_GRAVE+LOCATION_ONFIELD,1,rc,rc:GetCode()) return rc:IsControler(1-p) and not Duel.IsExistingMatchingCard(aux.AND(Card.IsFaceupEx,Card.IsCode),p,LOCATION_GRAVE+LOCATION_ONFIELD,LOCATION_GRAVE+LOCATION_ONFIELD,1,rc,rc:GetCode())
end end
function cm.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -95,7 +95,7 @@ function s.initial_effect(c) ...@@ -95,7 +95,7 @@ function s.initial_effect(c)
--to hand --to hand
local e10=Effect.CreateEffect(c) local e10=Effect.CreateEffect(c)
e10:SetDescription(aux.Stringid(id,5)) e10:SetDescription(aux.Stringid(id,5))
e10:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e10:SetCategory(CATEGORY_TOHAND)
e10:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e10:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e10:SetProperty(EFFECT_FLAG_DELAY) e10:SetProperty(EFFECT_FLAG_DELAY)
e10:SetRange(LOCATION_MZONE) e10:SetRange(LOCATION_MZONE)
......
...@@ -95,7 +95,7 @@ function s.initial_effect(c) ...@@ -95,7 +95,7 @@ function s.initial_effect(c)
--to hand --to hand
local e10=Effect.CreateEffect(c) local e10=Effect.CreateEffect(c)
e10:SetDescription(aux.Stringid(id,5)) e10:SetDescription(aux.Stringid(id,5))
e10:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e10:SetCategory(CATEGORY_TOHAND)
e10:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e10:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e10:SetProperty(EFFECT_FLAG_DELAY) e10:SetProperty(EFFECT_FLAG_DELAY)
e10:SetRange(LOCATION_MZONE) e10:SetRange(LOCATION_MZONE)
......
...@@ -25,14 +25,14 @@ function cm.initial_effect(c) ...@@ -25,14 +25,14 @@ function cm.initial_effect(c)
e3:SetRange(LOCATION_FZONE) e3:SetRange(LOCATION_FZONE)
e3:SetCountLimit(1,m+500) e3:SetCountLimit(1,m+500)
e3:SetCondition(cm.thcon) e3:SetCondition(cm.thcon)
e3:SetCost(cm.thcost) --e3:SetCost(cm.thcost)
e3:SetTarget(cm.thtg) e3:SetTarget(cm.thtg)
e3:SetOperation(cm.thop) e3:SetOperation(cm.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter) Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter)
end end
function cm.counterfilter(c) function cm.counterfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and (not c:IsSummonLocation(LOCATION_EXTRA) or c:IsType(TYPE_LINK)) return c:IsAttribute(ATTRIBUTE_WATER)
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsAbleToGraveAsCost() return c:IsAttribute(ATTRIBUTE_WATER) and c:IsAbleToGraveAsCost()
...@@ -50,7 +50,7 @@ function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se) function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsAttribute(ATTRIBUTE_WATER) or (not c:IsType(TYPE_LINK) and c:IsLocation(LOCATION_EXTRA)) return not c:IsAttribute(ATTRIBUTE_WATER)
end end
function cm.tgfilter(c,tp) function cm.tgfilter(c,tp)
return c:IsAttribute(ATTRIBUTE_WATER) and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,c:GetCode()) and c:IsAbleToGrave() return c:IsAttribute(ATTRIBUTE_WATER) and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,c:GetCode()) and c:IsAbleToGrave()
......
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