Skip to content

Commit 8e317b4

Browse files
committed
updated Galactica Fusion Space
1 parent 5e61187 commit 8e317b4

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

rush/c160025047.lua

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,24 @@ function s.initial_effect(c)
1717
e2:SetTarget(aux.TargetBoolFunction(s.extrafil_repl_filter))
1818
e2:SetOperation(s.operation)
1919
e2:SetLabelObject({s.extrafil_replacement,s.extramat})
20-
e2:SetValue(function(_,c) return c and c:IsRace(RACE_GALAXY) and c:IsAttribute(ATTRIBUTE_LIGHT|ATTRIBUTE_DARK) end)
20+
e2:SetValue(1)
2121
c:RegisterEffect(e2)
2222
end
2323
s.listed_names={CARD_FUSION,160015051}
2424
function s.extrafil_repl_filter(c)
2525
return c:IsMonster() and c:IsAbleToGrave() and c:IsAttribute(ATTRIBUTE_LIGHT|ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY)
2626
end
27+
function s.fcheck(tp,sg,fc)
28+
if fc and sg:IsExists(Card.IsLocation,1,nil,LOCATION_HAND) then
29+
return fc:IsRace(RACE_GALAXY) and fc:IsAttribute(ATTRIBUTE_LIGHT|ATTRIBUTE_DARK)
30+
end
31+
return true
32+
end
2733
function s.extrafil_replacement(e,tp,mg)
28-
return Duel.GetMatchingGroup(aux.NecroValleyFilter(s.extrafil_repl_filter),tp,LOCATION_GRAVE,0,nil)
34+
if not e:GetHandler():IsCode(CARD_FUSION) then
35+
return Group.CreateGroup()
36+
end
37+
return Duel.GetMatchingGroup(aux.NecroValleyFilter(s.extrafil_repl_filter),tp,LOCATION_HAND,0,nil),s.fcheck
2938
end
3039
function s.extramat(c,e,tp)
3140
return c:IsControler(tp) and e:GetHandler():IsCode(CARD_FUSION)

0 commit comments

Comments
 (0)