Commit cf2818ee authored by Amiya's avatar Amiya

修复

parent b5614ce1
Pipeline #36022 passed with stages
in 1 minute and 29 seconds
...@@ -32,15 +32,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,15 +32,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetOperatedGroup() local g=Duel.GetOperatedGroup()
local tc=g:GetFirst() local tc=g:GetFirst()
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-p,tc)
if not tc:IsType(TYPE_MONSTER) then end if not tc:IsType(TYPE_MONSTER) then end
Duel.BreakEffect() Duel.BreakEffect()
if Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_GRAVE,0,1,nil,tc:GetAttribute()) then if Duel.IsExistingMatchingCard(Card.IsAttribute,p,LOCATION_GRAVE,0,1,nil,tc:GetAttribute()) then
Duel.ShuffleHand(tp) Duel.ShuffleHand(p)
Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD) Duel.DiscardHand(p,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD)
else else
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(p,1,REASON_EFFECT)
end end
Duel.ShuffleHand(tp) Duel.ShuffleHand(p)
end end
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