Skip to content

Commit da0d2e8

Browse files
authored
Update c300308012.lua
Missing code to prevent draws during Draw Phase
1 parent 05d7b68 commit da0d2e8

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

skill/c300308012.lua

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,35 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp)
3737
e1:SetTargetRange(1,0)
3838
e1:SetCondition(aux.AND(s.plasmacon,s.drawcon))
3939
c:RegisterEffect(e1)
40-
--"Destiny HERO - Plasma" you control gains 100 ATK for each monster in both GYs
4140
local e2=Effect.CreateEffect(c)
4241
e2:SetType(EFFECT_TYPE_FIELD)
43-
e2:SetCode(EFFECT_UPDATE_ATTACK)
42+
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
43+
e2:SetCode(EFFECT_DRAW_COUNT)
4444
e2:SetRange(LOCATION_SZONE)
45-
e2:SetTargetRange(LOCATION_MZONE,0)
45+
e2:SetTargetRange(1,0)
4646
e2:SetCondition(s.plasmacon)
47-
e2:SetTarget(aux.TargetBoolFunction(Card.IsCode,83965310))
48-
e2:SetValue(function(e,c) return Duel.GetMatchingGroupCount(Card.IsMonster,0,LOCATION_GRAVE,LOCATION_GRAVE,nil)*100 end)
47+
e2:SetValue(0)
4948
c:RegisterEffect(e2)
50-
--"Destiny HERO - Plasma" you control cannot be destroyed by opponent's card effects
51-
local e3=e2:Clone()
52-
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
53-
e3:SetValue(aux.indoval)
49+
--"Destiny HERO - Plasma" you control gains 100 ATK for each monster in both GYs
50+
local e3=Effect.CreateEffect(c)
51+
e3:SetType(EFFECT_TYPE_FIELD)
52+
e3:SetCode(EFFECT_UPDATE_ATTACK)
53+
e3:SetRange(LOCATION_SZONE)
54+
e3:SetTargetRange(LOCATION_MZONE,0)
55+
e3:SetCondition(s.plasmacon)
56+
e3:SetTarget(aux.TargetBoolFunction(Card.IsCode,83965310))
57+
e3:SetValue(function(e,c) return Duel.GetMatchingGroupCount(Card.IsMonster,0,LOCATION_GRAVE,LOCATION_GRAVE,nil)*100 end)
5458
c:RegisterEffect(e3)
55-
--"Destiny HERO - Plasma" you control can make a second attack each Battle Phase
56-
local e4=e2:Clone()
57-
e4:SetCode(EFFECT_EXTRA_ATTACK)
58-
e4:SetValue(1)
59+
--"Destiny HERO - Plasma" you control cannot be destroyed by opponent's card effects
60+
local e4=e3:Clone()
61+
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
62+
e4:SetValue(aux.indoval)
5963
c:RegisterEffect(e4)
64+
--"Destiny HERO - Plasma" you control can make a second attack each Battle Phase
65+
local e5=e3:Clone()
66+
e5:SetCode(EFFECT_EXTRA_ATTACK)
67+
e5:SetValue(1)
68+
c:RegisterEffect(e5)
6069
end
6170
function s.plasmacon(e)
6271
return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,83965310),e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)

0 commit comments

Comments
 (0)