Commit 2955ad94 authored by Amiya's avatar Amiya

百夫长修复

parent 5ce2901d
No preview for this file type
......@@ -86,20 +86,20 @@ function s.spcon2(e,tp,eg,ep,ev,re,r,rp)
end
function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,id,0x1a2,TYPE_MONSTER+TYPE_EFFECT,2000,2000,8,RACE_DRAGON,ATTRIBUTE_DARK) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,id,0x1a2,TYPE_MONSTER+TYPE_EFFECT,2000,3000,8,RACE_DRAGON,ATTRIBUTE_DARK) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 and c:IsLevelAbove(5) and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(-14)
e1:SetValue(-4)
c:RegisterEffect(e1)
end
end
\ No newline at end of file
......@@ -37,7 +37,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
lv=Duel.SelectOption(tp,aux.Stringid(id,2),aux.Stringid(id,3))+1
e:SetLabel(lv*4)
elseif t1 then
Duel.SelectOption(tp,aux.Stringid(id,2),aux.Stringid(id,3))
Duel.SelectOption(tp,aux.Stringid(id,2))
e:SetLabel(4)
elseif t2 then
Duel.SelectOption(tp,aux.Stringid(id,3))
......
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