Commit 1cf99204 authored by wind2009's avatar wind2009

Merge branch 'patch-1' into 'master'

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

See merge request !116
parents e54eab92 651c54ff
......@@ -122,14 +122,14 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function s.repfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x22) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
function s.repfilter(c,tp)
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
function s.rmfilter(c)
return c:IsRace(RACE_DINOSAUR) and c:IsAbleToRemove()
end
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
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......@@ -140,5 +140,5 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
return false
end
function s.repval(e,c)
return s.repfilter(c)
return s.repfilter(c,e:GetHandlerPlayer())
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