Commit 6a5a4d6b authored by nekrozar's avatar nekrozar

fix Guardian Eatos

https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=2&cid=8536
②:このカードに装備された自分フィールドの装備魔法カード1枚を墓地へ送り、相手の墓地のモンスターを3体まで対象として発動できる。
parent e082beb3
...@@ -25,13 +25,13 @@ function c34022290.spcon(e,c) ...@@ -25,13 +25,13 @@ function c34022290.spcon(e,c)
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and not Duel.IsExistingMatchingCard(Card.IsType,c:GetControler(),LOCATION_GRAVE,0,1,nil,TYPE_MONSTER) and not Duel.IsExistingMatchingCard(Card.IsType,c:GetControler(),LOCATION_GRAVE,0,1,nil,TYPE_MONSTER)
end end
function c34022290.cfilter(c) function c34022290.cfilter(c,tp)
return c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost() return c:IsControler(tp) and c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost()
end end
function c34022290.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c34022290.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipGroup():IsExists(c34022290.cfilter,1,nil) end if chk==0 then return e:GetHandler():GetEquipGroup():IsExists(c34022290.cfilter,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,c34022290.cfilter,1,1,nil) local g=e:GetHandler():GetEquipGroup():FilterSelect(tp,c34022290.cfilter,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c34022290.rmfilter(c) function c34022290.rmfilter(c)
......
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