Commit b87e7be5 authored by POLYMER's avatar POLYMER

fix

parent afee3f18
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local ct=Duel.GetFlagEffect(tp,id) local ct=Duel.GetFlagEffect(tp,id)
if chk==0 then return c:CheckRemoveOverlayCard(tp,ct,REASON_COST) and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return ct>0 and c:CheckRemoveOverlayCard(tp,ct,REASON_COST) and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
c:RemoveOverlayCard(tp,ct,ct,REASON_COST) c:RemoveOverlayCard(tp,ct,ct,REASON_COST)
if c:GetOverlayCount()==0 then Duel.SetChainLimit(s.chlimit) end if c:GetOverlayCount()==0 then Duel.SetChainLimit(s.chlimit) end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil)
......
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