Skip to content

Commit 25cc1cf

Browse files
authored
Update "Doom Virus Dragon (Anime)"
Prevent script errors
1 parent 80be855 commit 25cc1cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

unofficial/c170000150.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
--Doom Virus Dragon (Anime)
33
local s,id=GetID()
44
function s.initial_effect(c)
5-
--fusion material
65
c:EnableReviveLimit()
6+
--Fusion Materials: "Crush Card Virus" + "The Fang of Critias"
77
Fusion.AddProcMix(c,true,true,57728570,11082056)
88
--Destroy all monsters your opponent controls with 1500 or more ATK
99
local e1=Effect.CreateEffect(c)
@@ -28,7 +28,8 @@ end
2828
function s.fdchkfilter(c)
2929
return c:IsFacedown() and c:IsAttackAbove(1500) and c:IsDestructable()
3030
end
31-
function s.desop(e,tp,eg,ep,ev,re,r,rp)
31+
function s.desop(e)
32+
local tp=e:GetHandlerPlayer()
3233
local g=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil)
3334
local conf=Duel.GetMatchingGroup(s.fdchkfilter,tp,0,LOCATION_MZONE,nil)
3435
if #conf>0 then
@@ -37,9 +38,10 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
3738
end
3839
Duel.Destroy(g,REASON_EFFECT)
3940
end
40-
function s.fdchkop(e,tp,eg,ep,ev,re,r,rp)
41+
function s.fdchkop(e)
42+
local tp=e:GetHandlerPlayer()
4143
local conf=Duel.GetFieldGroup(tp,0,LOCATION_MZONE,POS_FACEDOWN)
4244
if #conf>0 then
4345
Duel.ConfirmCards(tp,conf)
4446
end
45-
end
47+
end

0 commit comments

Comments
 (0)