Skip to content

Commit fa402ee

Browse files
authored
Update "Tank Corps"
-Tokens should be Level 4 -Incorrect function order caused issues with activation
1 parent 46742f7 commit fa402ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unofficial/c511000881.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ function s.initial_effect(c)
77
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
88
e1:SetType(EFFECT_TYPE_ACTIVATE)
99
e1:SetCode(EVENT_FREE_CHAIN)
10-
e1:SetCondition(function(e) return Duel.IsExistingMatchingCard(e:GetHandlerPlayer(),aux.FaceupFilter(Card.IsCode,511000880),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end)
10+
e1:SetCondition(function(e) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,511000880),e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end)
1111
e1:SetTarget(s.target)
1212
e1:SetOperation(s.operation)
1313
c:RegisterEffect(e1)
1414
end
1515
s.listed_names={511000880,id+1} --"KC-1 Crayton", "Tank Token"
1616
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
1717
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>2 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)
18-
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,500,1200,3,RACE_MACHINE,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) end
18+
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,500,1200,4,RACE_MACHINE,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) end
1919
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,3,0,0)
2020
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,3,tp,0)
2121
end
2222
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2323
if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) or Duel.GetLocationCount(tp,LOCATION_MZONE)<3 or
24-
not Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,500,1200,3,RACE_MACHINE,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE)then return end
24+
not Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,500,1200,4,RACE_MACHINE,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE)then return end
2525
for i=1,3 do
2626
local token=Duel.CreateToken(tp,id+1)
2727
if Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) then

0 commit comments

Comments
 (0)