Skip to content

Commit 225c65d

Browse files
committed
"Vaccination" fix
Fixed a script error when it tried to activate its effect without being previously equipped to a target
1 parent 51a1845 commit 225c65d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unofficial/c511004117.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function s.equipop(e,tp,eg,ep,ev,re,r,rp)
7474
end
7575
function s.reeqcond(e,tp,eg,ep,ev,re,r,rp)
7676
local tc=eg:GetFirst()
77-
return (tc:IsTributeSummoned() or tc:IsFusionSummoned())
78-
and tc:GetMaterial():IsContains(e:GetHandler():GetPreviousEquipTarget())
77+
local ec=e:GetHandler():GetPreviousEquipTarget()
78+
return (tc:IsTributeSummoned() or tc:IsFusionSummoned()) and ec and tc:GetMaterial():IsContains(ec)
7979
end
8080
function s.cfilter(c,e,oldec)
8181
return c:IsFaceup() and c:IsCanBeEffectTarget(e) and c:GetMaterial():IsContains(oldec)

0 commit comments

Comments
 (0)