Commit 8aa7b154 authored by VanillaSalt's avatar VanillaSalt

fix

parent d8f53e5b
...@@ -18,7 +18,7 @@ function c10441498.initial_effect(c) ...@@ -18,7 +18,7 @@ function c10441498.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_RELEASE) e2:SetCode(EVENT_RELEASE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCondition(c10441498.thcon) e2:SetCondition(c10441498.thcon)
e2:SetTarget(c10441498.thtg) e2:SetTarget(c10441498.thtg)
...@@ -50,6 +50,7 @@ function c10441498.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,6 +50,7 @@ function c10441498.lvop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LEVEL) e1:SetCode(EFFECT_CHANGE_LEVEL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(lv) e1:SetValue(lv)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
......
...@@ -4,6 +4,7 @@ function c47435107.initial_effect(c) ...@@ -4,6 +4,7 @@ function c47435107.initial_effect(c)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(47435107,0)) e1:SetDescription(aux.Stringid(47435107,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
...@@ -35,7 +36,6 @@ function c47435107.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,7 +36,6 @@ function c47435107.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c47435107.spop(e,tp,eg,ep,ev,re,r,rp) function c47435107.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -36,7 +36,8 @@ end ...@@ -36,7 +36,8 @@ end
function c73820802.operation(e,tp,eg,ep,ev,re,r,rp) function c73820802.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
if e:GetLabel()==0 then return end if e:GetLabel()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CARDTYPE) if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_CARDTYPE)
local op=Duel.SelectOption(1-tp,70,71,72) local op=Duel.SelectOption(1-tp,70,71,72)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
local g=Duel.GetDecktopGroup(tp,1) local g=Duel.GetDecktopGroup(tp,1)
...@@ -44,9 +45,12 @@ function c73820802.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,9 +45,12 @@ function c73820802.operation(e,tp,eg,ep,ev,re,r,rp)
if (op==0 and tc:IsType(TYPE_MONSTER)) or (op==1 and tc:IsType(TYPE_SPELL)) or (op==2 and tc:IsType(TYPE_TRAP)) then if (op==0 and tc:IsType(TYPE_MONSTER)) or (op==1 and tc:IsType(TYPE_SPELL)) or (op==2 and tc:IsType(TYPE_TRAP)) then
Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT)
else else
local sg=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0):RandomSelect(1-tp,1) local hg=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
if hg:GetCount()>0 then
local sg=hg:RandomSelect(1-tp,1)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT) Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
end end
end
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,1)
end end
function c73820802.condition(e,tp,eg,ep,ev,re,r,rp) function c73820802.condition(e,tp,eg,ep,ev,re,r,rp)
......
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