Commit 69656496 authored by POLYMER's avatar POLYMER

fix

parent 8bcde738
...@@ -36,7 +36,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,d,REASON_EFFECT) Duel.Damage(p,d,REASON_EFFECT)
end end
function s.addcon(e,tp,eg,ep,ev,re,r,rp) function s.addcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and e:GetHandler():GetFlagEffect(id)<=0 return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and Duel.GetFlagEffect(tp,id)<=0
end end
function s.addop(e,tp,eg,ep,ev,re,r,rp) function s.addop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
...@@ -44,5 +44,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,5 +44,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local sg=g:RandomSelect(tp,1) local sg=g:RandomSelect(tp,1)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT) Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
...@@ -58,7 +58,7 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.ReturnToField(e:GetLabelObject()) Duel.ReturnToField(e:GetLabelObject())
end end
function s.addcon(e,tp,eg,ep,ev,re,r,rp) function s.addcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and e:GetHandler():GetFlagEffect(id)<=0 return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and Duel.GetFlagEffect(tp,id)<=0
end end
function s.addfilter(c) function s.addfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
...@@ -81,5 +81,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,5 +81,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
...@@ -36,7 +36,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
end end
function s.addcon(e,tp,eg,ep,ev,re,r,rp) function s.addcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and e:GetHandler():GetFlagEffect(id)<=0 return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and Duel.GetFlagEffect(tp,id)<=0
end end
function s.filter(c) function s.filter(c)
return c:IsFaceup() and c:IsCanTurnSet() return c:IsFaceup() and c:IsCanTurnSet()
...@@ -49,5 +49,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,5 +49,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp)
local sc=g:Select(tp,1,1,nil):GetFirst() local sc=g:Select(tp,1,1,nil):GetFirst()
Duel.ChangePosition(sc,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(sc,POS_FACEDOWN_DEFENSE)
end end
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
...@@ -56,7 +56,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.addcon(e,tp,eg,ep,ev,re,r,rp) function s.addcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and e:GetHandler():GetFlagEffect(id)<=0 return e:GetHandler()==re:GetHandler() and e:GetHandler():GetColumnGroupCount()>=2 and Duel.GetFlagEffect(tp,id)<=0
end end
function s.addop(e,tp,eg,ep,ev,re,r,rp) function s.addop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
...@@ -66,5 +66,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,5 +66,5 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end end
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
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