Commit 89653e62 authored by 未闻皂名's avatar 未闻皂名

2021/3/22 新增:花牙僧 银荆,更新翻译

parent 33fba663
No preview for this file type
local m=120170021
local cm=_G["c"..m]
cm.name="和真战士"
cm.name="和真战士"
function cm.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
......
local m=120170022
local cm=_G["c"..m]
cm.name="魔仙斗 朱雀"
cm.name="魔仙斗 朱雀"
function cm.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
......
local m=120170027
local cm=_G["c"..m]
cm.name="花牙僧 银荆"
function cm.initial_effect(c)
--Position
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Position
function cm.confilter(c)
return c:IsFaceup() and c:IsLevelAbove(7) and c:IsRace(RACE_PLANT)
end
function cm.posfilter(c)
return c:IsDefensePos() and c:IsCanChangePosition()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.posfilter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(cm.posfilter,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectMatchingCard(tp,cm.posfilter,tp,0,LOCATION_MZONE,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
if Duel.ChangePosition(g,POS_FACEUP_ATTACK)~=0 then
Duel.Recover(tp,g:GetFirst():GetBaseAttack(),REASON_EFFECT)
end
end
end
\ No newline at end of file
local m=120170030
local cm=_G["c"..m]
cm.name="花牙兰狮子 兽丸"
cm.name="花牙兰狮子 兽丸"
function cm.initial_effect(c)
--Atk 0
local e1=Effect.CreateEffect(c)
......
local m=120170039
local list={120170002}
local cm=_G["c"..m]
cm.name="即兴果酱:P跳起!"
cm.name="即兴果酱音跃:P跳起!"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--Activate
......
local m=120170040
local list={120170002}
local cm=_G["c"..m]
cm.name="即兴果酱:P激活!"
cm.name="即兴果酱音跃:P激活!"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--Activate
......
......@@ -12,7 +12,8 @@ function cm.initial_effect(c)
end
--Activate
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 and Duel.GetAttacker():IsControler(1-tp)
local tc=Duel.GetAttacker()
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 and tc:IsControler(1-tp) and tc:IsLevelBelow(8)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateAttack()
......
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