Commit 5b0da437 authored by Nemo Ma's avatar Nemo Ma

fix

parent 6fd925de
...@@ -88,7 +88,7 @@ function c117837139.sumfilter(c,e,tp) ...@@ -88,7 +88,7 @@ function c117837139.sumfilter(c,e,tp)
end end
function c117837139.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function c117837139.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCountFromEx(1-tp)>0 and Duel.IsExistingMatchingCard(c117837139.sumfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,1-tp,true,false) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0 and Duel.IsExistingMatchingCard(c117837139.sumfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,1-tp,true,false) end
end end
function c117837139.sumop(e,tp,eg,ep,ev,re,r,rp) function c117837139.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -68,7 +68,7 @@ function c46250010.eqlimit(e,c) ...@@ -68,7 +68,7 @@ function c46250010.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250010.matval(e,c,mg) function c46250010.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250010.atkval(e,c) function c46250010.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -73,7 +73,7 @@ function c46250011.eqlimit(e,c) ...@@ -73,7 +73,7 @@ function c46250011.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250011.matval(e,c,mg) function c46250011.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250011.atkval(e,c) function c46250011.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -75,7 +75,7 @@ function c46250012.eqlimit(e,c) ...@@ -75,7 +75,7 @@ function c46250012.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250012.matval(e,c,mg) function c46250012.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250012.atkval(e,c) function c46250012.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -82,7 +82,7 @@ function c46250013.eqlimit(e,c) ...@@ -82,7 +82,7 @@ function c46250013.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250013.matval(e,c,mg) function c46250013.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250013.atkval(e,c) function c46250013.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -88,7 +88,7 @@ function c46250014.eqlimit(e,c) ...@@ -88,7 +88,7 @@ function c46250014.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250014.matval(e,c,mg) function c46250014.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250014.atkval(e,c) function c46250014.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -89,7 +89,7 @@ function c46250015.eqlimit(e,c) ...@@ -89,7 +89,7 @@ function c46250015.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250015.matval(e,c,mg) function c46250015.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250015.atkval(e,c) function c46250015.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -100,7 +100,7 @@ function c46250016.eqlimit(e,c) ...@@ -100,7 +100,7 @@ function c46250016.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250016.matval(e,c,mg) function c46250016.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250016.atkval(e,c) function c46250016.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
...@@ -96,7 +96,7 @@ function c46250017.eqlimit(e,c) ...@@ -96,7 +96,7 @@ function c46250017.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==c
end end
function c46250017.matval(e,c,mg) function c46250017.matval(e,c,mg)
return c:IsRace(RACE_WYRM) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer())
end end
function c46250017.atkval(e,c) function c46250017.atkval(e,c)
return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack) return Group.GetSum(c:GetEquipGroup():Filter(Card.IsSetCard,nil,0x1fc0),Card.GetTextAttack)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment