Commit 1cf99204 authored by wind2009's avatar wind2009

Merge branch 'patch-1' into 'master'

fix--ジュラック・ヴォルケーノ

See merge request mycard/pre-release-database-cdb!116
parents e54eab92 651c54ff
...@@ -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