Skip to content

Commit 5b7f0ca

Browse files
committed
"Primite Howl" fix
Fixed a bug where it would prevent any battle damage, instead of preventing of damage from battle with your "Primite" monsters and the declared monster
1 parent ee6c218 commit 5b7f0ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/c41488249.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
4545
local e1=Effect.CreateEffect(e:GetHandler())
4646
e1:SetDescription(aux.Stringid(id,2))
4747
e1:SetType(EFFECT_TYPE_FIELD)
48-
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
4948
e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE)
50-
e1:SetTargetRange(1,0)
49+
e1:SetTargetRange(LOCATION_MZONE,0)
5150
e1:SetTarget(function(e,c) return c:IsSetCard(SET_PRIMITE) or (c:IsCode(code) and c:IsType(TYPE_NORMAL)) end)
5251
e1:SetValue(1)
5352
e1:SetReset(RESET_PHASE|PHASE_END)
5453
Duel.RegisterEffect(e1,tp)
54+
aux.RegisterClientHint(e:GetHandler(),0,tp,1,0,aux.Stringid(id,2))
5555
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
5656
--Special Summon 1 Normal Monster with the declared name
5757
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,nil,e,tp,code)

0 commit comments

Comments
 (0)