Commit 689ec454 authored by POLYMER's avatar POLYMER

fix

parent 0f67394a
...@@ -130,7 +130,7 @@ function c28368431.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -130,7 +130,7 @@ function c28368431.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CHANGE_DAMAGE) e1:SetCode(EFFECT_CHANGE_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetCondition(c28368431.damcon) --e1:SetCondition(c28368431.damcon)
e1:SetValue(c28368431.damval) e1:SetValue(c28368431.damval)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
...@@ -144,9 +144,8 @@ function c28368431.damcon(e) ...@@ -144,9 +144,8 @@ function c28368431.damcon(e)
return Duel.GetFlagEffect(tp,28368431)==0 return Duel.GetFlagEffect(tp,28368431)==0
end end
function c28368431.damval(e,re,val,r,rp,rc) function c28368431.damval(e,re,val,r,rp,rc)
local tp=e:GetHandlerPlayer()
if bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 then if bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 then
Duel.RegisterFlagEffect(tp,28368431,RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1) e:Reset()
return 0 return 0
end end
return val return val
......
...@@ -176,7 +176,7 @@ function c98920499.deckcostfilter(c,tp) ...@@ -176,7 +176,7 @@ function c98920499.deckcostfilter(c,tp)
return c:IsSetCard(0x128) and c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost() return c:IsSetCard(0x128) and c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost()
end end
function c98920499.acost(e,tp,eg,ep,ev,re,r,rp,chk) function c98920499.acost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98920499.costfilter,tp,LOCATION_HAND+LOCATION_SZONE,0,1,nil,tp) or (Duel.IsExistingMatchingCard(c98920499.deckcostfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetFlagEffect(tp,36562627)==0) end if chk==0 then return Duel.IsExistingMatchingCard(c98920499.costfilter,tp,LOCATION_HAND+LOCATION_SZONE,0,1,nil,tp) or (Duel.IsExistingMatchingCard(c98920499.deckcostfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetFlagEffect(tp,98920499)==0) end
if Duel.IsExistingMatchingCard(c98920499.deckcostfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetFlagEffect(tp,98920500)==0 and (not Duel.IsExistingMatchingCard(c98920499.costfilter,tp,LOCATION_HAND+LOCATION_SZONE,0,1,nil,tp) or Duel.SelectYesNo(tp,aux.Stringid(98920499,1))) then if Duel.IsExistingMatchingCard(c98920499.deckcostfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetFlagEffect(tp,98920500)==0 and (not Duel.IsExistingMatchingCard(c98920499.costfilter,tp,LOCATION_HAND+LOCATION_SZONE,0,1,nil,tp) or Duel.SelectYesNo(tp,aux.Stringid(98920499,1))) then
local g=Duel.GetMatchingGroup(c98920499.deckcostfilter,tp,LOCATION_DECK,0,nil,tp) local g=Duel.GetMatchingGroup(c98920499.deckcostfilter,tp,LOCATION_DECK,0,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
...@@ -8,7 +8,7 @@ function c98920645.initial_effect(c) ...@@ -8,7 +8,7 @@ function c98920645.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetCountLimit(1,98920645) e2:SetCountLimit(1)
e2:SetCost(c98920645.spcost) e2:SetCost(c98920645.spcost)
e2:SetTarget(c98920645.sptg) e2:SetTarget(c98920645.sptg)
e2:SetOperation(c98920645.spop) e2:SetOperation(c98920645.spop)
......
...@@ -61,7 +61,7 @@ function c98930402.initial_effect(c) ...@@ -61,7 +61,7 @@ function c98930402.initial_effect(c)
end end
function c98930402.sfilter(c,e,tp) function c98930402.sfilter(c,e,tp)
return c:GetOriginalType()&TYPE_MONSTER>0 return c:GetOriginalType()&TYPE_MONSTER>0
and c:IsFaceup() and c:IsFaceup() and c:IsLocation(LOCATION_SZONE)
end end
function c98930402.spfilter(c,fc,tp) function c98930402.spfilter(c,fc,tp)
return c:IsCode(98930401) and c:IsLevel(10) and not c:IsFusionType(TYPE_FUSION) return c:IsCode(98930401) and c:IsLevel(10) and not c:IsFusionType(TYPE_FUSION)
......
...@@ -49,7 +49,7 @@ function c98930403.initial_effect(c) ...@@ -49,7 +49,7 @@ function c98930403.initial_effect(c)
end end
function c98930403.filter(c) function c98930403.filter(c)
return c:GetOriginalType()&TYPE_MONSTER>0 return c:GetOriginalType()&TYPE_MONSTER>0
and c:IsFaceup() and c:IsFaceup() and c:IsLocation(LOCATION_SZONE)
end end
function c98930403.indescon(e) function c98930403.indescon(e)
return Duel.IsExistingMatchingCard(c98930403.filter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil) return Duel.IsExistingMatchingCard(c98930403.filter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
...@@ -58,7 +58,7 @@ function c98930403.indestg(e,c) ...@@ -58,7 +58,7 @@ function c98930403.indestg(e,c)
return c:IsCode(98930401) return c:IsCode(98930401)
end end
function c98930403.catkfilter(c,tp) function c98930403.catkfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsCode(98930401) and c:IsReason(REASON_EFFECT) return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsCode(98930401)
end end
function c98930403.catkcon(e,tp,eg,ep,ev,re,r,rp) function c98930403.catkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c98930403.catkfilter,1,nil,tp) return eg:IsExists(c98930403.catkfilter,1,nil,tp)
......
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