Commit 97f9443d authored by mercury233's avatar mercury233

fix

parent d14f8557
...@@ -57,12 +57,12 @@ function c101009006.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,12 +57,12 @@ function c101009006.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
a:RegisterEffect(e1) a:RegisterEffect(e1)
local e1=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e2:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(math.ceil(d:GetBaseAttack()/2)) e2:SetValue(math.ceil(d:GetBaseAttack()/2))
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
d:RegisterEffect(e1) d:RegisterEffect(e2)
end end
end end
function c101009006.regcon(e,tp,eg,ep,ev,re,r,rp) function c101009006.regcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -105,7 +105,6 @@ function c101009011.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +105,6 @@ function c101009011.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CHANGE_RSCALE) e2:SetCode(EFFECT_CHANGE_RSCALE)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
...@@ -114,6 +113,7 @@ function c101009011.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,6 +113,7 @@ function c101009011.operation(e,tp,eg,ep,ev,re,r,rp)
e3:SetTarget(c101009011.splimit) e3:SetTarget(c101009011.splimit)
e3:SetReset(RESET_PHASE+PHASE_END) e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
end
end end
function c101009011.splimit(e,c) function c101009011.splimit(e,c)
return not c:IsSetCard(0xb3) return not c:IsSetCard(0xb3)
......
...@@ -40,6 +40,7 @@ function c101009030.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,6 +40,7 @@ function c101009030.spop(e,tp,eg,ep,ev,re,r,rp)
and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(101009030,1)) then and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(101009030,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.BreakEffect()
Duel.HintSelection(sg) Duel.HintSelection(sg)
Duel.SendtoDeck(sg,nil,0,REASON_EFFECT) Duel.SendtoDeck(sg,nil,0,REASON_EFFECT)
end end
......
...@@ -22,7 +22,7 @@ function c101009032.initial_effect(c) ...@@ -22,7 +22,7 @@ function c101009032.initial_effect(c)
end end
function c101009032.descon(e,tp,eg,ep,ev,re,r,rp) function c101009032.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:GetMaterial()>0 return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:GetMaterialCount()>0
end end
function c101009032.desfilter(c,atk) function c101009032.desfilter(c,atk)
return c:IsFaceup() and c:IsAttackBelow(atk) return c:IsFaceup() and c:IsAttackBelow(atk)
......
...@@ -21,10 +21,11 @@ function c101009036.initial_effect(c) ...@@ -21,10 +21,11 @@ function c101009036.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101009036,0)) e2:SetDescription(aux.Stringid(101009036,0))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,101009036) e2:SetCountLimit(1,101009036)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetCost(c101009036.thcost) e2:SetCost(c101009036.thcost)
e2:SetTarget(c101009036.thtg) e2:SetTarget(c101009036.thtg)
e2:SetOperation(c101009036.thop) e2:SetOperation(c101009036.thop)
......
...@@ -7,6 +7,7 @@ function c101009054.initial_effect(c) ...@@ -7,6 +7,7 @@ function c101009054.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,101009054+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c101009054.target) e1:SetTarget(c101009054.target)
e1:SetOperation(c101009054.activate) e1:SetOperation(c101009054.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -20,7 +20,7 @@ function c101009056.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c101009056.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c101009056.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c101009056.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c101009056.tfilter(c,e,tp) function c101009056.tfilter(c,e,tp)
return c:IsSetCard(0x31) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0x8,tp,false,false) return c:IsSetCard(0x31) and c:IsCanBeSpecialSummoned(e,0x8,tp,false,false)
and not Duel.IsExistingMatchingCard(c101009056.bfilter,tp,LOCATION_ONFIELD,0,1,nil,c) and not Duel.IsExistingMatchingCard(c101009056.bfilter,tp,LOCATION_ONFIELD,0,1,nil,c)
end end
function c101009056.bfilter(c,tc) function c101009056.bfilter(c,tc)
......
...@@ -16,6 +16,9 @@ function c101009060.initial_effect(c) ...@@ -16,6 +16,9 @@ function c101009060.initial_effect(c)
e2:SetTarget(c101009060.atktg) e2:SetTarget(c101009060.atktg)
e2:SetValue(300) e2:SetValue(300)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e5=e2:Clone()
e5:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e5)
--decrease tribute --decrease tribute
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(101009060,0)) e3:SetDescription(aux.Stringid(101009060,0))
...@@ -32,6 +35,7 @@ function c101009060.initial_effect(c) ...@@ -32,6 +35,7 @@ function c101009060.initial_effect(c)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_FZONE) e4:SetRange(LOCATION_FZONE)
e4:SetCountLimit(1,101009160) e4:SetCountLimit(1,101009160)
e4:SetCondition(c101009060.sumcon)
e4:SetTarget(c101009060.sumtg) e4:SetTarget(c101009060.sumtg)
e4:SetOperation(c101009060.sumop) e4:SetOperation(c101009060.sumop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -50,7 +54,9 @@ function c101009060.trcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +54,9 @@ function c101009060.trcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
end end
function c101009060.trop(e,tp,eg,ep,ev,re,r,rp) function c101009060.trop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DECREASE_TRIBUTE) e1:SetCode(EFFECT_DECREASE_TRIBUTE)
e1:SetTargetRange(LOCATION_HAND,0) e1:SetTargetRange(LOCATION_HAND,0)
...@@ -73,6 +79,8 @@ function c101009060.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,6 +79,8 @@ function c101009060.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0)
end end
function c101009060.sumop(e,tp,eg,ep,ev,re,r,rp) function c101009060.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON)
local g=Duel.SelectMatchingCard(tp,c101009060.sumfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c101009060.sumfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -45,7 +45,7 @@ function c101009061.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c101009061.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c101009061.thfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c101009061.thfilter,tp,LOCATION_DECK,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:SelectSubGroup(tp,c101009061.fselect,false,2,2) local sg=g:SelectSubGroup(tp,c101009061.fselect,false,2,2)
if sg:GetCount()==2 then if sg and sg:GetCount()==2 then
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
......
...@@ -55,6 +55,7 @@ function c101009066.activate(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,6 +55,7 @@ function c101009066.activate(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=Duel.SelectMatchingCard(tp,c101009066.spfilter,tp,loc,0,1,1,nil,e,tp,rg) local tg=Duel.SelectMatchingCard(tp,c101009066.spfilter,tp,loc,0,1,1,nil,e,tp,rg)
if tg:GetCount()>0 then if tg:GetCount()>0 then
Duel.BreakEffect()
Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP)
end end
end end
......
...@@ -20,7 +20,7 @@ end ...@@ -20,7 +20,7 @@ end
function c101009076.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101009076.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c101009076.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c101009076.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c101009076.filter,tp,0,LOCATION_MZONE,2,nil) end if chk==0 then return Duel.IsExistingTarget(c101009076.filter,tp,0,LOCATION_MZONE,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c101009076.filter,tp,0,LOCATION_MZONE,2,2,nil) local g=Duel.SelectTarget(tp,c101009076.filter,tp,0,LOCATION_MZONE,2,2,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,2,0,0)
end end
......
...@@ -41,10 +41,10 @@ function c101009080.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,10 +41,10 @@ function c101009080.condition(e,tp,eg,ep,ev,re,r,rp)
return ev==PLAYER_ALL return ev==PLAYER_ALL
end end
function c101009080.target(e,tp,eg,ep,ev,re,r,rp,chk) function c101009080.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsPlayerCanDraw(1-tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,2) and Duel.IsPlayerCanDraw(1-tp,2) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,2)
end end
function c101009080.activate(e,tp,eg,ep,ev,re,r,rp) function c101009080.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,2,REASON_EFFECT)
Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Draw(1-tp,2,REASON_EFFECT)
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