Commit 2e4eb524 authored by wind2009's avatar wind2009

Fix サモンカウンター

parent 9c92db2c
Pipeline #42385 canceled with stages
in 15 seconds
No preview for this file type
...@@ -47,3 +47,4 @@ ...@@ -47,3 +47,4 @@
101304208 101304208
101304075 101304075
101304076 101304076
101304078
\ No newline at end of file
...@@ -50,8 +50,10 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,8 +50,10 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToChain() then if c:IsRelateToChain() then
local ct=c:GetCounter(0x4c) local ct=c:GetCounter(0x4c)
if ct>0 then
c:RemoveCounter(tp,0x4c,ct,REASON_EFFECT) c:RemoveCounter(tp,0x4c,ct,REASON_EFFECT)
local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end
end 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