Commit ff3885b9 authored by xiaoye's avatar xiaoye

fix

parent 3d4f896e
...@@ -1243,7 +1243,11 @@ function VgD.GlobalCheckEffect(c,m,typ,code,con,op) ...@@ -1243,7 +1243,11 @@ function VgD.GlobalCheckEffect(c,m,typ,code,con,op)
ge1:SetType(typ) ge1:SetType(typ)
ge1:SetCode(code) ge1:SetCode(code)
if VgF.GetValueType(con)=="function" then ge1:SetCondition(con) end if VgF.GetValueType(con)=="function" then ge1:SetCondition(con) end
ge1:SetOperation(op) if VgF.GetValueType(op)=="function" then ge1:SetOperation(op) else
ge1:SetOperation(function (e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end)
end
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
end end
end end
\ No newline at end of file
...@@ -446,8 +446,8 @@ EFFECT_CHANGE_TYPE =117 --改变卡片种类 ...@@ -446,8 +446,8 @@ EFFECT_CHANGE_TYPE =117 --改变卡片种类
EFFECT_ADD_RACE =120 --增加种族 EFFECT_ADD_RACE =120 --增加种族
EFFECT_REMOVE_RACE =121 --删除种族 EFFECT_REMOVE_RACE =121 --删除种族
EFFECT_CHANGE_RACE =122 --改变种族 EFFECT_CHANGE_RACE =122 --改变种族
EFFECT_ADD_ATTRIBUTE =125 --增加属性 EFFECT_ADD_SKILL =125 --增加技能
EFFECT_REMOVE_ATTRIBUTE =126 --删除属性 EFFECT_REMOVE_SKILL =126 --删除技能
EFFECT_CHANGE_ATTRIBUTE =127 --改变属性 EFFECT_CHANGE_ATTRIBUTE =127 --改变属性
EFFECT_UPDATE_LEVEL =130 --改变等级 EFFECT_UPDATE_LEVEL =130 --改变等级
EFFECT_CHANGE_LEVEL =131 --设置等级 EFFECT_CHANGE_LEVEL =131 --设置等级
......
...@@ -853,15 +853,13 @@ end ...@@ -853,15 +853,13 @@ end
---@param c Card 要判断的卡 ---@param c Card 要判断的卡
---@return boolean 指示c是否是前列的单位 ---@return boolean 指示c是否是前列的单位
function VgF.FrontFilter(c) function VgF.FrontFilter(c)
local seq=c:GetSequence() return vgf.IsSequence(c,0,4,5) and c:IsLocation(LOCATION_MZONE)
return (seq==0 or seq==4 or seq==5) and c:IsType(TYPE_MONSTER)
end end
---判断c是否在后列。 ---判断c是否在后列。
---@param c Card 要判断的卡 ---@param c Card 要判断的卡
---@return boolean 指示c是否是后列的单位 ---@return boolean 指示c是否是后列的单位
function VgF.BackFilter(c) function VgF.BackFilter(c)
local seq=c:GetSequence() return vgf.IsSequence(c,1,2,3) and c:IsLocation(LOCATION_MZONE)
return (seq==1 or seq==2 or seq==3) and c:IsType(TYPE_MONSTER)
end end
function VgF.PrisonFilter(c,ct) function VgF.PrisonFilter(c,ct)
return c:GetSequence() == ct-1 return c:GetSequence() == ct-1
...@@ -1129,6 +1127,7 @@ function VgF.Sendto(loc,sg,...) ...@@ -1129,6 +1127,7 @@ function VgF.Sendto(loc,sg,...)
end end
return 0 return 0
end end
-- 白翼能力在你的封锁区中的卡只有奇数的等级的场合有效 -- 白翼能力在你的封锁区中的卡只有奇数的等级的场合有效
function VgF.WhiteWing(e) function VgF.WhiteWing(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
......
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