Commit 79c1d48f authored by 未闻皂名's avatar 未闻皂名

2020/9/19 正式卡更新,根据FAQ修改部分效果

parent 6dfb5cc9
No preview for this file type
No preview for this file type
...@@ -13,7 +13,7 @@ function cm.initial_effect(c) ...@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end end
--Activate --Activate
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and not c:IsHasEffect(EFFECT_PIERCE) return c:IsFaceup() and not c:IsHasEffect(EFFECT_CANNOT_ATTACK)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP() return Duel.IsAbleToEnterBP()
......
...@@ -14,7 +14,7 @@ function cm.initial_effect(c) ...@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end end
--Pierce --Pierce
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP() and not e:GetHandler():IsHasEffect(EFFECT_PIERCE) return Duel.IsAbleToEnterBP() and not e:GetHandler():IsHasEffect(EFFECT_CANNOT_ATTACK)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -2,7 +2,7 @@ local m=120140001 ...@@ -2,7 +2,7 @@ local m=120140001
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="魔将 岂灭鲁拉" cm.name="魔将 岂灭鲁拉"
function cm.initial_effect(c) function cm.initial_effect(c)
--Cannot Summon --Direct Attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
...@@ -12,10 +12,11 @@ function cm.initial_effect(c) ...@@ -12,10 +12,11 @@ function cm.initial_effect(c)
e1:SetOperation(cm.operation) e1:SetOperation(cm.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
--Special Summon --Direct Attack
function 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() local c=e:GetHandler()
return c:IsReason(REASON_SUMMON) and c:IsStatus(STATUS_SUMMON_TURN) and c:IsAttackable() return c:IsReason(REASON_SUMMON) and c:IsStatus(STATUS_SUMMON_TURN)
and Duel.IsAbleToEnterBP() and c:IsAttackable()
and not c:IsHasEffect(EFFECT_DIRECT_ATTACK) and not c:IsHasEffect(EFFECT_DIRECT_ATTACK)
and not c:IsHasEffect(EFFECT_CANNOT_ATTACK) and not c:IsHasEffect(EFFECT_CANNOT_ATTACK)
and not c:IsHasEffect(EFFECT_CANNOT_DIRECT_ATTACK) and not c:IsHasEffect(EFFECT_CANNOT_DIRECT_ATTACK)
......
...@@ -14,7 +14,7 @@ function cm.initial_effect(c) ...@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end end
--Activate --Activate
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and not c:IsHasEffect(EFFECT_PIERCE) return c:IsFaceup() and not c:IsHasEffect(EFFECT_CANNOT_ATTACK)
end end
function cm.check(g) function cm.check(g)
return g:GetClassCount(Card.GetLevel)==1 return g:GetClassCount(Card.GetLevel)==1
......
...@@ -37,9 +37,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,9 +37,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
end local sg=Duel.GetMatchingGroup(cm.posfilter,tp,LOCATION_MZONE,0,nil)
local sg=Duel.GetMatchingGroup(cm.posfilter,tp,LOCATION_MZONE,0,nil) if sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
if sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then Duel.ChangePosition(sg,POS_FACEUP_DEFENSE)
Duel.ChangePosition(sg,POS_FACEUP_DEFENSE) end
end end
end end
\ No newline at end of file
...@@ -17,13 +17,12 @@ function cm.spfilter(c,e,tp) ...@@ -17,13 +17,12 @@ function cm.spfilter(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsAttack(0) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and c:IsAttack(0) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget() local c=Duel.GetAttackTarget()
return Duel.GetAttacker():IsControler(1-tp) and tc and tc:IsFaceup() and tc:IsAttack(0) return Duel.GetAttacker():IsControler(1-tp) and c and c:IsFaceup() and c:IsAttack(0)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
if chk==0 then return tc:IsAttackPos() and tc:IsCanChangePosition() end if chk==0 then return tc:IsAttackPos() and tc:IsCanChangePosition() end
Duel.SetTargetCard(tc)
Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -2,7 +2,7 @@ local m=120140018 ...@@ -2,7 +2,7 @@ local m=120140018
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="王家魔族·嘶吼歌手" cm.name="王家魔族·嘶吼歌手"
function cm.initial_effect(c) function cm.initial_effect(c)
--To Hand --Handes
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TOGRAVE) e1:SetCategory(CATEGORY_TOGRAVE)
...@@ -14,7 +14,7 @@ function cm.initial_effect(c) ...@@ -14,7 +14,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.operation) e1:SetOperation(cm.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
--To Hand --Handes
function cm.confilter(c) function cm.confilter(c)
return c:IsFaceup() and c:IsLevelAbove(7) return c:IsFaceup() and c:IsLevelAbove(7)
end end
......
...@@ -17,8 +17,8 @@ function cm.costfilter(c) ...@@ -17,8 +17,8 @@ function cm.costfilter(c)
return c:IsRace(RACE_PSYCHO) and c:IsAbleToDeckAsCost() return c:IsRace(RACE_PSYCHO) and c:IsAbleToDeckAsCost()
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget() local c=Duel.GetAttackTarget()
return Duel.GetAttacker():IsControler(1-tp) and tc and tc:IsFaceup() and tc:IsRace(RACE_PSYCHO) return Duel.GetAttacker():IsControler(1-tp) and c and c:IsFaceup() and c:IsRace(RACE_PSYCHO)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_GRAVE,0,1,nil) 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