Commit 651c54ff authored by 八宫一月's avatar 八宫一月

Update c100227030.lua

parent e54eab92
...@@ -122,14 +122,14 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,14 +122,14 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function s.repfilter(c) function s.repfilter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x22) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE) return c:IsFaceup() and c:IsControler(tp) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x22) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end end
function s.rmfilter(c) function s.rmfilter(c)
return c:IsRace(RACE_DINOSAUR) and c:IsAbleToRemove() return c:IsRace(RACE_DINOSAUR) and c:IsAbleToRemove()
end end
function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(s.repfilter,1,nil) if chk==0 then return eg:IsExists(s.repfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_GRAVE,0,1,nil) end and Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_GRAVE,0,1,nil) end
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
...@@ -140,5 +140,5 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -140,5 +140,5 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
return false return false
end end
function s.repval(e,c) function s.repval(e,c)
return s.repfilter(c) return s.repfilter(c,e:GetHandlerPlayer())
end end
\ No newline at end of file
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