Commit 32910333 authored by mercury233's avatar mercury233 Committed by GitHub

fix キャッスル・ゲート

カードに記載された攻撃力が0や?のモンスターをリリースして発動することはできません。
parent 6ecb9481
......@@ -23,10 +23,13 @@ end
function c36931229.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsAttackPos()
end
function c36931229.filter(c)
return c:IsLevelBelow(5) and c:GetTextAttack()>0
end
function c36931229.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsLevelBelow,1,nil,5) end
local sg=Duel.SelectReleaseGroup(tp,Card.IsLevelBelow,1,1,nil,5)
e:SetLabel(sg:GetFirst():GetBaseAttack())
if chk==0 then return Duel.CheckReleaseGroup(tp,c36931229.filter,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,c36931229.filter,1,1,nil)
e:SetLabel(sg:GetFirst():GetTextAttack())
Duel.Release(sg,REASON_COST)
end
function c36931229.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
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