Skip to content

Commit efbe361

Browse files
authored
Update "Pulling The Strings"
Should prevent damage from cards the opponent controls that you own (both effect/battle damage)
1 parent 4f977bc commit efbe361

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

skill/c300309012.lua

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ function s.ctrlop(e,tp,eg,ep,ev,re,r,rp)
4949
local tc=g:GetFirst()
5050
Duel.HintSelection(tc,true)
5151
if tc and Duel.GetControl(tc,1-tp) then
52+
--That monster cannot be Tributed
5253
local e1=Effect.CreateEffect(e:GetHandler())
5354
e1:SetDescription(3303)
5455
e1:SetType(EFFECT_TYPE_SINGLE)
@@ -75,25 +76,26 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
7576
if #sg>0 and Duel.Destroy(sg,REASON_EFFECT)>0 then
7677
Duel.Damage(1-tp,500,REASON_EFFECT)
7778
end
78-
--You take no damage from your card effects for the rest of this Duel
79-
local e1=Effect.CreateEffect(e:GetHandler())
79+
local c=e:GetHandler()
80+
--You take no damage from cards you own for the rest of this Duel
81+
local e1a=Effect.CreateEffect(e:GetHandler())
8082
e1:SetDescription(aux.Stringid(id,2))
81-
e1:SetType(EFFECT_TYPE_FIELD)
82-
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
83-
e1:SetCode(EFFECT_CHANGE_DAMAGE)
84-
e1:SetRange(0x5f)
85-
e1:SetTargetRange(1,0)
86-
e1:SetValue(s.damval)
87-
Duel.RegisterEffect(e1,tp)
88-
local e2=e1:Clone()
89-
e2:SetCode(EFFECT_NO_EFFECT_DAMAGE)
90-
Duel.RegisterEffect(e2,tp)
83+
e1a:SetType(EFFECT_TYPE_FIELD)
84+
e1a:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
85+
e1a:SetCode(EFFECT_CHANGE_DAMAGE)
86+
e1a:SetRange(0x5f)
87+
e1a:SetTargetRange(1,0)
88+
e1a:SetValue(s.damval)
89+
Duel.RegisterEffect(e1a,tp)
90+
local e1b=e1a:Clone()
91+
e1b:SetCode(EFFECT_NO_EFFECT_DAMAGE)
92+
Duel.RegisterEffect(e1b,tp)
93+
end
94+
end
95+
function s.val(e,re,val,r,rp,rc)
96+
if rc:IsOwner(e:GetHandlerPlayer()) then
97+
return 0
98+
else
99+
return val
91100
end
92101
end
93-
function s.damval(e,re,val,r,rp,rc)
94-
if (r&REASON_EFFECT)>0 and re:GetHandler():GetOwner()==e:GetOwnerPlayer() then
95-
return 0
96-
else
97-
return val
98-
end
99-
end

0 commit comments

Comments
 (0)