Commit b7b3c72a authored by argon.sun's avatar argon.sun

fix

parent 2db8e3e2
...@@ -23,9 +23,9 @@ function c34707034.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -23,9 +23,9 @@ function c34707034.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,3,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,3,0,0)
end end
function c34707034.operation(e,tp,eg,ep,ev,re,r,rp) function c34707034.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<3 then return end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()<3 then return end if g:GetCount()==0 then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<g:GetCount() then return end
local c=e:GetHandler() local c=e:GetHandler()
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
......
...@@ -54,13 +54,14 @@ function c35220244.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,13 +54,14 @@ function c35220244.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c35220244.atkop(e,tp,eg,ep,ev,re,r,rp) function c35220244.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then local ec=c:GetEquipTarget()
if ec and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_EQUIP) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(400) e1:SetValue(400)
e1:SetReset(RESET_EVENT+0x1ff0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) ec:RegisterEffect(e1)
end end
end end
function c35220244.discon(e,tp,eg,ep,ev,re,r,rp) function c35220244.discon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -14,7 +14,7 @@ function c54652250.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -14,7 +14,7 @@ function c54652250.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp) local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c54652250.operation(e,tp,eg,ep,ev,re,r,rp) function c54652250.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -53,6 +53,10 @@ function c60470713.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,6 +53,10 @@ function c60470713.operation(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
else
local cg=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
Duel.ConfirmCards(1-tp,cg)
Duel.ShuffleDeck(tp)
end end
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
...@@ -66,6 +70,10 @@ function c60470713.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,6 +70,10 @@ function c60470713.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
else
local cg=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
Duel.ConfirmCards(1-tp,cg)
Duel.ShuffleDeck(tp)
end end
end end
end end
...@@ -40,7 +40,7 @@ function c69257165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -40,7 +40,7 @@ function c69257165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c69257165.operation(e,tp,eg,ep,ev,re,r,rp) function c69257165.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and not Duel.GetControl(tc,tp,PHASE_END,1) then if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:GetLevel()==e:GetLabel() and not Duel.GetControl(tc,tp,PHASE_END,1) then
if not tc:IsImmuneToEffect(e) and tc:IsAbleToChangeControler() then if not tc:IsImmuneToEffect(e) and tc:IsAbleToChangeControler() then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
......
...@@ -24,14 +24,10 @@ function c8719957.initial_effect(c) ...@@ -24,14 +24,10 @@ function c8719957.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--negate --negate
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(8719957,0)) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCategory(CATEGORY_DISABLE) e4:SetCode(EVENT_CHAIN_SOLVING)
e4:SetType(EFFECT_TYPE_QUICK_F)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e4:SetCode(EVENT_CHAINING)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetCondition(c8719957.negcon) e4:SetCondition(c8719957.negcon)
e4:SetTarget(c8719957.negtg)
e4:SetOperation(c8719957.negop) e4:SetOperation(c8719957.negop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
...@@ -58,13 +54,7 @@ function c8719957.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,13 +54,7 @@ function c8719957.negcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE return rp~=tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE
and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev)
end end
function c8719957.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
end
function c8719957.negop(e,tp,eg,ep,ev,re,r,rp) function c8719957.negop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end end
...@@ -8,8 +8,7 @@ function c95352218.initial_effect(c) ...@@ -8,8 +8,7 @@ function c95352218.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--adjust --adjust
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(95352218,0)) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
...@@ -34,7 +33,6 @@ function c95352218.filter2(c,lv) ...@@ -34,7 +33,6 @@ function c95352218.filter2(c,lv)
return c:IsFaceup() and c:GetLevel()~=lv return c:IsFaceup() and c:GetLevel()~=lv
end end
function c95352218.adjustop(e,tp,eg,ep,ev,re,r,rp) function c95352218.adjustop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local turnp=Duel.GetTurnPlayer() local turnp=Duel.GetTurnPlayer()
local g=Duel.GetMatchingGroup(c95352218.filter1,turnp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c95352218.filter1,turnp,LOCATION_MZONE,0,nil)
if g:GetCount()<2 then return end if g:GetCount()<2 then return end
......
...@@ -23,6 +23,7 @@ function c95920682.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,6 +23,7 @@ function c95920682.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end end
function c95920682.activate(e,tp,eg,ep,ev,re,r,rp) function c95920682.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(1-tp)==8000 then return end
Duel.SetLP(1-tp,8000) Duel.SetLP(1-tp,8000)
Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(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