Skip to content

Commit 2cefb58

Browse files
committed
"Burning Wind" fix
It should only be activateable when the attacking monster is a level 5 or higher
1 parent 64b3e2a commit 2cefb58

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

rush/c160018061.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--
1+
--バーニング・ウィンド
22
--Burning Wind
33
--Scripted by YoshiDuels
44
local s,id=GetID()
@@ -17,7 +17,7 @@ end
1717
function s.condition(e,tp,eg,ep,ev,re,r,rp)
1818
local at=Duel.GetAttacker()
1919
local tc=Duel.GetAttackTarget()
20-
return at and tc and at:IsControler(1-tp)
20+
return at and tc and at:IsControler(1-tp) and at:IsLevelAbove(5)
2121
end
2222
function s.atkfilter(c)
2323
return c:IsFaceup() and c:IsRace(RACE_WARRIOR) and not c:IsMaximumModeSide()
@@ -55,8 +55,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
5555
end
5656
end
5757
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTACKTARGET)
58-
local g=ag:Select(tp,1,1,at)
59-
local tc=g:GetFirst()
58+
local tc=ag:Select(tp,1,1,at):GetFirst()
6059
if tc then
6160
Duel.ChangeAttackTarget(tc)
6261
end

0 commit comments

Comments
 (0)