Commit 3465a3f5 authored by wind2009's avatar wind2009

Fix トレジャ一・パンサ一

parent f8af54e2
Pipeline #40448 passed with stages
in 1 minute and 20 seconds
No preview for this file type
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
100200275 100200275
100200276 100200276
100200278 100200278
100200279
100246001 100246001
100246002 100246002
100247147 100247147
......
...@@ -15,7 +15,7 @@ function s.initial_effect(c) ...@@ -15,7 +15,7 @@ function s.initial_effect(c)
--change position --change position
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_POSITION) e2:SetCategory(CATEGORY_POSITION+CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
...@@ -56,6 +56,12 @@ function s.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -56,6 +56,12 @@ function s.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN)
local g=Duel.SelectTarget(tp,s.cpfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,3,nil) local g=Duel.SelectTarget(tp,s.cpfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,3,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,#g,0,0)
if g:GetCount()==3 then
e:SetCategory(CATEGORY_POSITION+CATEGORY_DAMAGE)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,900)
else
e:SetCategory(CATEGORY_POSITION)
end
end end
function s.filter(c) function s.filter(c)
return c:IsRelateToChain() and c:IsLocation(LOCATION_MZONE) return c:IsRelateToChain() and c:IsLocation(LOCATION_MZONE)
...@@ -64,9 +70,9 @@ end ...@@ -64,9 +70,9 @@ end
function s.cpop(e,tp,eg,ep,ev,re,r,rp) function s.cpop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(s.filter,nil) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(s.filter,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ChangePosition(g,POS_FACEUP_ATTACK) local oc=Duel.ChangePosition(g,POS_FACEUP_ATTACK)
local og=Duel.GetOperatedGroup() if oc==3 then
if og:GetCount()==3 then Duel.BreakEffect()
Duel.Damage(1-tp,900,REASON_EFFECT) Duel.Damage(1-tp,900,REASON_EFFECT)
end end
end end
......
...@@ -82,4 +82,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,4 +82,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SSet(tp,tc,1-tp) Duel.SSet(tp,tc,1-tp)
end end
end end
end end
\ No newline at end of file
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