Commit 237b6dd3 authored by POLYMER's avatar POLYMER

fix

parent d2cb4077
...@@ -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) and c:IsControler(e:GetHandlerPlayer()) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer()),true
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) and c:IsControler(e:GetHandlerPlayer()) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer()),true
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) and c:IsControler(e:GetHandlerPlayer()) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer()),true
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)
......
...@@ -81,7 +81,7 @@ function c46250013.eqlimit(e,c) ...@@ -81,7 +81,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) and c:IsControler(e:GetHandlerPlayer()) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer()),true
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) and c:IsControler(e:GetHandlerPlayer()) return c:IsRace(RACE_WYRM) and c:IsControler(e:GetHandlerPlayer()),true
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)
......
...@@ -15,6 +15,20 @@ end ...@@ -15,6 +15,20 @@ end
return c:IsSetCard(0x119) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x119) and c:IsType(TYPE_MONSTER)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp,chk) function cm.op(e,tp,eg,ep,ev,re,r,rp,chk)
--limit
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(cm.checkcon)
e1:SetOperation(cm.checkop)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,0)
e2:SetTarget(cm.splimit)
Duel.RegisterEffect(e2,tp)
Duel.Exile(e:GetHandler(),REASON_RULE) Duel.Exile(e:GetHandler(),REASON_RULE)
local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_HAND,0,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
...@@ -48,20 +62,6 @@ end ...@@ -48,20 +62,6 @@ end
Duel.ConfirmCards(1-tp,d) Duel.ConfirmCards(1-tp,d)
end end
end end
--limit
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(cm.checkcon)
e1:SetOperation(cm.checkop)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,0)
e2:SetTarget(cm.splimit)
Duel.RegisterEffect(e2,tp)
end end
function cm.checkcon(e,tp,eg,ep,ev,re,r,rp) function cm.checkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==e:GetHandlerPlayer() return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
...@@ -89,5 +89,5 @@ end ...@@ -89,5 +89,5 @@ end
return c:IsControler(e:GetHandlerPlayer()) return c:IsControler(e:GetHandlerPlayer())
end end
function cm.splimit(e,c) function cm.splimit(e,c)
return not c:IsSetCard(0x119) and not c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0x119) and c:IsLocation(LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED)
end end
\ No newline at end of file
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