Skip to content

Commit 673747e

Browse files
authored
"Mitsurugi Prayers" fix
Shouldn't be able to Special Summon if the player doesn't take damage.
1 parent dd4a3fa commit 673747e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

official/c45171524.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ function s.initial_effect(c)
99
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DAMAGE+CATEGORY_SPECIAL_SUMMON)
1010
e1:SetType(EFFECT_TYPE_ACTIVATE)
1111
e1:SetCode(EVENT_FREE_CHAIN)
12-
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
1312
e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH)
1413
e1:SetCost(s.effcost)
1514
e1:SetTarget(s.efftg)
1615
e1:SetOperation(s.effop)
16+
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
1717
c:RegisterEffect(e1)
1818
end
1919
s.listed_series={SET_MITSURUGI}
@@ -59,11 +59,9 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
5959
end
6060
end
6161
if op==2 or op==3 then
62-
--Take 800 damage
6362
if breakeffect then Duel.BreakEffect() end
64-
Duel.Damage(tp,800,REASON_EFFECT)
65-
--Special Summon 1 "Mitsurugi" monster from your hand or GY, but it cannot attack directly
66-
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
63+
--Take 800 damage, then you can Special Summon 1 "Mitsurugi" monster from your hand or GY, but it cannot attack directly
64+
if Duel.Damage(tp,800,REASON_EFFECT)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
6765
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp)
6866
and Duel.SelectYesNo(tp,aux.Stringid(id,5)) then
6967
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
@@ -82,4 +80,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
8280
Duel.SpecialSummonComplete()
8381
end
8482
end
85-
end
83+
end

0 commit comments

Comments
 (0)