Commit 919fdcf1 authored by 聖園ミカ's avatar 聖園ミカ 🐟

duiduiduiduidui

parent 025b30c8
......@@ -13,12 +13,21 @@ function s.remove(c)
e1:SetOperation(s.rmop)
return e1
end
function s.thfilter(c,tp)
return c:IsReason(REASON_EFFECT) and c:IsControler(tp)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and ep~=tp and r&REASON_EFFECT~=0
return eg:GetCount()==1 and ep~=tp and eg:IsExists(s.thfilter,1,nil,1-tp)
end
function s.costfilter(c)
return (c:IsFaceup() or c:GetEquipTarget()) and c:IsType(TYPE_EQUIP) and c:IsAbleToGraveAsCost()
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
end
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=eg:GetFirst()
if chk==0 then return ec and ec:IsAbleToRemove() end
......@@ -26,12 +35,6 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
ec:CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,ec,1,0,0)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
end
function s.rmop(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=e:GetLabelObject()
if not tc or not tc:IsRelateToEffect(e) then return 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