Commit 8ff3ab8b authored by argon.sun's avatar argon.sun

fix

parent 6289d85e
...@@ -26,6 +26,7 @@ function c39537362.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,6 +26,7 @@ function c39537362.target1(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.SelectYesNo(tp,aux.Stringid(39537362,1)) then and Duel.SelectYesNo(tp,aux.Stringid(39537362,1)) then
e:SetLabel(1) e:SetLabel(1)
else e:SetLabel(0) end else e:SetLabel(0) end
Duel.SetTargetCard(Duel.GetAttacker())
end end
function c39537362.condition(e,tp,eg,ep,ev,re,r,rp) function c39537362.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() return tp~=Duel.GetTurnPlayer()
...@@ -36,7 +37,7 @@ function c39537362.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,7 +37,7 @@ function c39537362.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c39537362.activate(e,tp,eg,ep,ev,re,r,rp) function c39537362.activate(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()~=1 or Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 if e:GetLabel()~=1 or Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
or not e:GetHandler():IsRelateToEffect(e) or not Duel.GetAttacker():IsRelateToEffect(e) then return end or not e:GetHandler():IsRelateToEffect(e) or not Duel.GetAttacker():IsRelateToEffect(e) then return end
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0):RandomSelect(1-tp,1,nil) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0):RandomSelect(1-tp,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CARDTYPE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CARDTYPE)
......
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