Commit 94347f2c authored by salix5's avatar salix5

fix DR02-B

parent 3d2c9c67
......@@ -52,7 +52,7 @@ function c40916023.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c40916023.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc and tc:IsRelateToEffect(e) and tc:IsControler(1-tp) and tc:IsFaceup() then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -29,7 +29,7 @@ function c81306586.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c81306586.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if tc and tc:IsRelateToEffect(e) and tc:IsControler(1-tp) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
......@@ -13,6 +13,9 @@ end
function c96947648.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAttackBelow(1500) and c:IsAttribute(ATTRIBUTE_WATER) and c:IsAbleToHand()
end
function c96947648.opfilter(c,e)
return c:IsRelateToEffect(e) and c:IsAttribute(ATTRIBUTE_WATER)
end
function c96947648.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and c96947648.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c96947648.filter,tp,LOCATION_GRAVE,0,2,nil) end
......@@ -22,7 +25,7 @@ function c96947648.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c96947648.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e)
local sg=g:Filter(c96947648.opfilter,nil,e)
if sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT)
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