Commit de37765b authored by xiaoye's avatar xiaoye

fixed

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