Skip to content

Commit d1611dc

Browse files
committed
"Blast Held by Destiny" fix
Fixed a bug where it would be able to destroy a face-down monster with the highest ATK
1 parent c16f499 commit d1611dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

official/c51208877.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ end
3030
s.listed_names={CARD_EXCHANGE_SPIRIT}
3131
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
3232
if chk==0 then return true end
33-
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_MZONE,nil):GetMaxGroup(Card.GetAttack)
33+
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil):GetMaxGroup(Card.GetAttack)
3434
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
3535
end
3636
function s.desop(e,tp,eg,ep,ev,re,r,rp)
37-
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_MZONE,nil)
37+
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
3838
if #g<1 then return end
3939
local tg=g:GetMaxGroup(Card.GetAttack)
4040
if #tg>1 then
@@ -57,7 +57,7 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
5757
if chk==0 then return Duel.IsExistingTarget(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
5858
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
5959
local g=Duel.SelectTarget(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
60-
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
60+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,tp,0)
6161
end
6262
function s.thop(e,tp,eg,ep,ev,re,r,rp)
6363
local tc=Duel.GetFirstTarget()

0 commit comments

Comments
 (0)