Commit 2f5cfbc0 authored by POLYMER's avatar POLYMER

fix

parent a206daf7
......@@ -75,13 +75,16 @@ end
function s.eqlimit(e,c)
return c==e:GetLabelObject()
end
function s.eqfilter(c,tp)
return c:CheckUniqueOnField(tp)
end
function s.eqtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil,c) end
and Duel.IsExistingTarget(s.eqfilter,tp,0,LOCATION_MZONE,1,nil,c,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil,c)
local g=Duel.SelectTarget(tp,s.eqfilter,tp,0,LOCATION_MZONE,1,1,nil,c,tp)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,g,1,0,0)
end
function s.eqop1(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -55,13 +55,16 @@ end
function s.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) or aux.fuslimit(e,se,sp,st)
end
function s.eqfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:CheckUniqueOnField(tp)
end
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_MZONE) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil,c) end
and Duel.IsExistingTarget(s.eqfilter,tp,0,LOCATION_MZONE,1,nil,c,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil,c)
local g=Duel.SelectTarget(tp,s.eqfilter,tp,0,LOCATION_MZONE,1,1,nil,c,tp)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,g,1,0,0)
end
function s.eqop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -63,7 +63,7 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.eqfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsAbleToChangeControler() and
c:CheckUniqueOnField(tp)
c:CheckUniqueOnField(tp) and not c:IsForbidden()
end
function s.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -54,8 +54,8 @@ function s.matfilter2(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) or c:IsAttribute(ATTRIBUTE_DARK)
end
function s.eqfilter1(c,tp)
return c:IsRace(RACE_WARRIOR) or c:IsRace(RACE_FIEND) and
c:CheckUniqueOnField(tp)
return (c:IsRace(RACE_WARRIOR) or c:IsRace(RACE_FIEND)) and
c:CheckUniqueOnField(tp) and not c:IsForbidden()
end
function s.eqfilter2(c,tp)
return aux.IsCodeListed(c,12866755) and c:IsType(TYPE_FUSION) and
......
......@@ -56,7 +56,7 @@ function s.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) or aux.fuslimit(e,se,sp,st)
end
function s.eqfilter(c,tp,atk)
return c:IsAttackAbove(atk) and c:CheckUniqueOnField(tp)
return c:IsAttackAbove(atk) and c:CheckUniqueOnField(tp) and not c:IsForbidden()
end
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......
......@@ -67,7 +67,7 @@ function s.splimit(e,se,sp,st)
end
function s.eqfilter(c,tp,id)
return c:IsType(TYPE_MONSTER) and c:IsReason(REASON_DESTROY) and c:GetTurnID()==id
and c:CheckUniqueOnField(tp)
and c:CheckUniqueOnField(tp) and not c:IsForbidden()
end
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -26,7 +26,7 @@ function s.initial_effect(c)
end
s.fusion_effect=true
function s.tgfilter(c)
return c:IsCode(12866755)
return c:IsCode(12866755) and c:IsAbleToGrave()
end
function s.spfilter(c,e,tp)
return c:IsFaceupEx() and c:IsCode(12866755) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -68,7 +68,6 @@ function c65810050.limop(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetTargetRange(1,1)
e2:SetReset(RESET_PHASE+PHASE_END)
......
......@@ -17,16 +17,14 @@ function c65899920.initial_effect(c)
e1:SetCondition(c65899920.xxcon)
e1:SetOperation(c65899920.xxop)
c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(65899920,ACTIVITY_CHAIN,c65899920.counterfilter)
end
function c65899920.counterfilter(c)
return c:GetOwner()==1
Duel.AddCustomActivityCounter(65899920,ACTIVITY_CHAIN,aux.FALSE)
end
function c65899920.xxcon(e,tp,eg,ep,ev,re,r,rp)
return tp==0 and Duel.GetTurnCount()==1
end
function c65899920.xxop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
e:SetLabel(0)
Duel.ConfirmCards(1-tp,c)
Duel.Hint(HINT_CARD,0,65899920)
local e1=Effect.CreateEffect(c)
......@@ -53,7 +51,13 @@ function c65899920.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c65899920.cfilter,1,nil,tp)
end
function c65899920.spcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCustomActivityCount(65899920,1-tp,ACTIVITY_CHAIN)==5
local a=Duel.GetChainInfo(0,CHAININFO_TRIGGERING_EFFECT)
local b=e:GetLabel()
if a:GetOwnerPlayer()==0 then
local b=b+1
e:SetLabel(b)
end
return Duel.GetCustomActivityCount(65899920,1-tp,ACTIVITY_CHAIN)==5+b
end
function c65899920.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,65899920)
......
......@@ -85,6 +85,7 @@ function s.adjustop(e,tp,eg,ep,ev,re,r,rp)
--
if not s.globle_check then
s.globle_check=true
local c=e:GetHandler()
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD)
ge1:SetCode(EFFECT_ACTIVATE_COST)
......
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