Commit 4735fc05 authored by jwyxym's avatar jwyxym Committed by GitHub

Merge pull request #18 from ikaros131417/main

猫猫
parents 54be4cae 015e3be5
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
end
--诚意真心的领队 克拉莉萨
local cm,m,o=GetID()
function cm.initial_effect(c)--这个函数下面用于注册效果
vgf.VgCard(c)
--【自】:通过在「正确的音程 克拉莉萨」上RIDE的方式将这个单位登场到V时
-- 通过【费用】[计数爆发1],
-- 从你的牌堆里探寻至多1张「目标!最强的偶像!」,公开后加入手牌,然后牌堆洗切。
-- vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_SINGLE,EVENT_SPSUMMON_SUCCESS,vgf.SearchCard(LOCATION_DECK,cm.filter),VgF.DamageCost(1),cm.con2,nil,1) 封装函数存在问题,先废话代替
vgd.EffectTypeTrigger(c,m,LOCATION_MZONE,EFFECT_TYPE_SINGLE,EVENT_SPSUMMON_SUCCESS,cm.operation2,VgF.DamageCost(1),cm.con2,nil,1)
-- 【自】【V】:这个单位的攻击击中时,抽1张卡,选择你的1张含有「诚意真心」的后防者,这个回合中,力量+5000。
vgd.EffectTypeTriggerWhenHitting(c,m,LOCATION_MZONE,EFFECT_TYPE_SINGLE,cm.operation1,nil,cm.con1)
end
function cm.con2(e)
local c = e:GetHandler()
local g = c:GetMaterial()
return VgF.VMonsterCondition(e) and c:IsSummonType(SUMMON_TYPE_RIDE) and g:IsExists(Card.IsCode,1,nil,10501036)
end
function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(tp,50)
--确认卡组
-- Duel.ConfirmCards(tp,g)
Duel.DisableShuffleCheck()
local sg=g:FilterSelect(tp,cm.filter,0,1,nil)
Duel.DisableShuffleCheck()
if #sg > 0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
Duel.ShuffleHand(tp)
g:RemoveCard(vgf.ReturnCard(sg))
end
Duel.ShuffleDeck(tp)
end
function cm.filter(c)
return c:IsCode(10501021)
end
function cm.con1(e)
local c=e:GetHandler()
return VgF.VMonsterCondition(e)
end
function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
local c = e:GetHandler()
Duel.Draw(tp,1,REASON_EFFECT)
Duel.Hint(HINT_MESSAGE,tp,HINTMSG_ATKUP)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
vgf.AtkUp(c,g,5000)
-- vgf.RMonsterFilter
end
function cm.filter(c)
return c:IsSetCard(0xb6) and c:GetSequence()<5
end
......@@ -29,7 +29,7 @@ end
function cm.con2(e)
local c = e:GetHandler()
local g = c:GetMaterial()
return c:IsSummonType(SUMMON_TYPE_RIDE) and g:IsExists(Card.IsCode,1,nil,10501090)
return VgF.VMonsterCondition(e) and c:IsSummonType(SUMMON_TYPE_RIDE) and g:IsExists(Card.IsCode,1,nil,10501090)
end
......
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
end
--花绽的歌声 罗洛涅萝尔
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 【永】【V】:【永】【V】:你的回合中,你的指令区中有正面表示的歌曲卡的话,这个单位的力量+5000。
VgD.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,5000,cm.con1)
-- 【自】:这个单位被RIDE时,选择你的牌堆或手牌中的至多1张等级2的歌曲卡,公开后放置到指令区,从牌堆探寻了的话,牌堆洗切。从手牌放置了的话,抽卡1张。
vgd.BeRidedByCard(c,m,nil,cm.operation,nil,nil)
end
function cm.con1(e)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
local a = Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_ORDER,0,1,c)
return vgf.VMonsterCondition(e) and a and Duel.GetTurnPlayer()==tp
end
function cm.filter1(c)
return c:IsSetCard(0xa040) and c:IsFaceup()
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
--确认卡组
-- local g=Duel.GetDecktopGroup(tp,50)
-- -- LOCATION_DECK
-- Duel.ConfirmCards(tp,g)
-- Duel.DisableShuffleCheck()
local p=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND+LOCATION_DECK,0,0,1,nil)
if #p > 0 then
local sp = Group.GetFirst(p)
local a = sp:IsLocation(LOCATION_HAND)
Duel.Sendto(p,tp,LOCATION_ORDER,POS_FACEUP_ATTACK,REASON_EFFECT)
Duel.DisableShuffleCheck()
Duel.ConfirmCards(1-tp,p)
Duel.ShuffleDeck(tp)
if a then
Duel.Draw(tp,1,REASON_EFFECT)
Duel.ShuffleHand(tp)
end
else
Duel.ShuffleDeck(tp)
end
end
function cm.filter(c)
return c:IsSetCard(0xa040) and c:IsAbleToHand() and c:IsLevelBelow(3)
end
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
end
--爽朗的王子 哈里耶特
-- 未测试
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 【永】【R】:你的回合中,你的指令区中有2张以上的卡的话,这个单位的力量+5000。
VgD.EffectTypeContinuousChangeAttack(c,EFFECT_TYPE_SINGLE,5000,cm.con1)
end
function cm.con1()
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
local a = Duel.IsExistingMatchingCard(nil,tp,LOCATION_ORDER,0,2,c)
return vgf.RMonsterCondition(e) and a and Duel.GetTurnPlayer()==tp
end
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
end
--探寻心动 罗洛涅萝尔
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 【自】:这个单位被RIDE时,选择你的牌堆或手牌中的至多1张等级1的歌曲卡,公开后放置到指令区,从牌堆探寻了的话,牌堆洗切。从手牌放置了的话,抽卡1张。
vgd.BeRidedByCard(c,m,nil,cm.operation,nil,nil)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
--确认卡组
-- local g=Duel.GetDecktopGroup(tp,50)
-- -- LOCATION_DECK
-- Duel.ConfirmCards(tp,g)
-- Duel.DisableShuffleCheck()
local p=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND+LOCATION_DECK,0,0,1,nil)
if #p > 0 then
local sp = Group.GetFirst(p)
local a = sp:IsLocation(LOCATION_HAND)
Duel.Sendto(p,tp,LOCATION_ORDER,POS_FACEUP_ATTACK,REASON_EFFECT)
Duel.DisableShuffleCheck()
Duel.ConfirmCards(1-tp,p)
Duel.ShuffleDeck(tp)
if a then
Duel.Draw(tp,1,REASON_EFFECT)
Duel.ShuffleHand(tp)
end
else
Duel.ShuffleDeck(tp)
end
end
function cm.filter(c)
return c:IsSetCard(0xa040) and c:IsAbleToHand() and c:IsLevelBelow(2)
end
\ No newline at end of file
......@@ -18,13 +18,18 @@ function cm.con1(e)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
local a = Duel.IsExistingMatchingCard(vgf.RMonsterFilter,tp,LOCATION_MZONE,0,1,c)
return vgf.VMonsterCondition(e) and not a and Duel.GetTurnPlayer()==tp
if a == true then
a = flase
else
a = true
end
return vgf.VMonsterCondition(e) and a and Duel.GetTurnPlayer()==tp
end
function cm.con2(e)
local c = e:GetHandler()
local g = c:GetMaterial()
return c:IsSummonType(SUMMON_TYPE_RIDE) and g:IsExists(Card.IsCode,1,nil,10501102)
return vgf.VMonsterCondition(e) and c:IsSummonType(SUMMON_TYPE_RIDE) and g:IsExists(Card.IsCode,1,nil,10501102)
end
......
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
vgd.BeRidedByCard(c,m,nil,cm.operation,nil,cm.condition)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==1 and Duel.GetTurnPlayer()==tp
end
\ No newline at end of file
--为了传递歌声 罗洛涅萝尔
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
vgd.BeRidedByCard(c,m,nil,cm.operation,nil,cm.condition)
-- 【自】:这个单位被RIDE时,你是后攻的话,抽1张卡。
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==1 and Duel.GetTurnPlayer()==tp
end
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
vgd.BeRidedByCard(c,m,nil,cm.operation,nil,cm.condition)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==1 and Duel.GetTurnPlayer()==tp
end
\ No newline at end of file
--白黑的个性 阿蕾斯缇耶尔
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
vgd.BeRidedByCard(c,m,nil,cm.operation,nil,cm.condition)
-- 【自】:这个单位被RIDE时,你是后攻的话,抽1张卡。
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==1 and Duel.GetTurnPlayer()==tp
end
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
end
--激发之泉
-- 未测试
local cm,m,o=GetID()
function cm.initial_effect(c)
vgf.VgCard(c)
-- 你的后防者在3张以上的话,这次战斗中,你所有的正在被攻击的单位的力量+15000。
vgd.QuickSpell(c,EVENT_MOVE,cm.op,nil,nil)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tp=e:GetHandlerPlayer()
local b = Duel.IsExistingMatchingCard(vgf.RMonsterFilter,tp,LOCATION_MZONE,0,3,c)
if b then
local a = Duel.GetAttackTarget()
vgf.AtkUp(c,a,15000,EVENT_BATTLED)
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