Commit de37765b authored by xiaoye's avatar xiaoye

fixed

parent c222893a
......@@ -10,7 +10,6 @@ end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=vgf.SelectMatchingCard(HINTMSG_FACEUP,e,tp,cm.filter,tp,LOCATION_ORDER,0,1,1,nil)
Duel.HintSelection(g)
Duel.RaiseEvent(g,EVENT_CUSTOM+EVENT_SING,e,0,tp,tp,0)
end
function cm.filter(c)
......@@ -23,7 +22,6 @@ end
function cm.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=vgf.SelectMatchingCard(HINTMSG_FACEUP,e,tp,cm.filter,tp,LOCATION_ORDER,0,1,1,nil)
Duel.HintSelection(g)
Duel.RaiseEvent(g,EVENT_CUSTOM+EVENT_SING,e,0,tp,tp,0)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -8,8 +8,8 @@ function cm.initial_effect(c)
vgd.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,10000,cm.con)
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
local c = e:GetHandler()
function cm.con(e)
local tp=e:GetHandlerPlayer()
return vgf.RMonsterCondition(e) and Duel.GetFlagEffect(tp,m)>0 and Duel.GetFlagEffect(tp,m+1)>0
end
......
......@@ -7,8 +7,8 @@ function cm.initial_effect(c)
vgd.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,5000,cm.con2,tg,EFFECT_UPDATE_DEFENSE,reset,LOCATION_GZONE)
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return cm.con2(e,tp,eg,ep,ev,re,r,rp) and vgf.RMonsterCondition(e)
function cm.con1(e)
return cm.con2(e) and vgf.RMonsterCondition(e)
end
function cm.con2(e)
......
--扎起头发的憧憬 海尔维希
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 【自】:你的战斗阶段中这个单位登场到R时,通过【费用】[将这个单位放置到灵魂里],抽1张卡。
......@@ -7,15 +8,12 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
local c = e:GetHandler()
local ph = Duel.GetCurrentPhase()
return vgf.RMonsterFilter(c) and (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) and Duel.GetTurnPlayer() == tp
-- 非ride或人格ride
-- not cm.condition(e,tp,eg,ep,ev,re,r,rp)
return not cm.condition(e,tp,eg,ep,ev,re,r,rp) and (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) and Duel.GetTurnPlayer() == tp
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_RIDE) or c:IsSummonType(SUMMON_TYPE_SELFRIDE)
end
-- 检测是ride或人格ride
-- function cm.condition(e,tp,eg,ep,ev,re,r,rp)
-- local c=e:GetHandler()
-- return c:IsSummonType(SUMMON_TYPE_RIDE) or c:IsSummonType(SUMMON_TYPE_SELFRIDE)
-- end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
-- -2000
vgd.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,-2000,cm.con)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
function cm.con(e)
local c = e:GetHandler()
return VgF.BackFilter(c) and vgf.RMonsterCondition(e)
return VgF.BackFilter(c)
end
......@@ -9,6 +9,6 @@ end
function cm.con(e)
local c = e:GetHandler()
local tp = e:GetHandlerPlayer()
local a = vgf.IsExistingMatchingCard(nil,tp,LOCATION_ORDER,0,1,c)
local a = vgf.IsExistingMatchingCard(nil,tp,LOCATION_ORDER,0,1,nil)
return vgf.RMonsterCondition(e) and a and Duel.GetTurnPlayer()==tp
end
--美丽的假日 菲尔缇萝萨
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 【自】:这个单位被RIDE时,通过【费用】[灵魂爆发1],选择你的弃牌区中的至多1张〈幽灵〉,加入手牌。
......@@ -11,7 +12,8 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
VgF.SearchCard(LOCATION_HAND,LOCATION_GRAVE,cm.filter,1,0)(e,tp,eg,ep,ev,re,r,rp)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
function cm.con(e)
local tp=e:GetHandlerPlayer()
return vgf.IsExistingMatchingCard(cm.filter1,tp,LOCATION_MZONE,0,1,nil) and Duel.GetTurnPlayer()==tp
end
......
--爽朗的王子 哈里耶特
-- 未测试
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
......@@ -10,7 +9,6 @@ end
function cm.con1(e)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
local a = vgf.IsExistingMatchingCard(nil,tp,LOCATION_ORDER,0,2,c)
return vgf.RMonsterCondition(e) and a and Duel.GetTurnPlayer()==tp
return vgf.RMonsterCondition(e) and vgf.IsExistingMatchingCard(nil,tp,LOCATION_ORDER,0,2,nil) and Duel.GetTurnPlayer()==tp
end
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
vgd.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,2000,cm.con)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
function cm.con(e)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
local a=vgf.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1)
......
......@@ -8,8 +8,8 @@ function cm.initial_effect(c)
vgd.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,2000,cm.con1)
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
function cm.con1(e)
local tp=e:GetHandlerPlayer()
return vgf.RMonsterCondition(e) and Duel.GetFlagEffect(tp,m)>0
end
......
......@@ -8,7 +8,6 @@ function cm.initial_effect(c)
vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_SINGLE,EVENT_SPSUMMON_SUCCESS,cm.operation,nil,cm.con2,nil,1)
end
function cm.con1(e)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
return vgf.VMonsterCondition(e) and not vgf.IsExistingMatchingCard(vgf.RMonsterFilter,tp,LOCATION_MZONE,0,1,nil) and Duel.GetTurnPlayer()==tp
end
......
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