Commit 16e4cc63 authored by Huangnan's avatar Huangnan

fix

parent c2672522
Pipeline #37246 passed with stages
in 66 minutes and 31 seconds
No preview for this file type
......@@ -54,7 +54,7 @@ function s.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x5344) and c:IsAbleToDeck() and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,c:GetCode(),e,tp)
end
function s.thfilter(c,code,e,tp)
return c:IsSetCard(0x9341,0x5344) and c:IsType(TYPE_MONSTER) and not c:IsCode(code) and (c:IsAbleToHand()
return c:IsSetCard(0xc342,0x5344) and c:IsType(TYPE_MONSTER) and not c:IsCode(code) and (c:IsAbleToHand()
or (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end
function s.tg3(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -63,7 +63,7 @@ function s.con2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(loc,LOCATION_HAND)~=0 and re:IsActiveType(TYPE_MONSTER) and rc:IsSetCard(0x5344) and rc:IsControler(tp) and not rc:IsCode(id)
end
function s.thfilter2(c,e,tp)
return c:IsSetCard(0x341,0xa342,0x5344) and c:IsType(TYPE_MONSTER) and not c:IsCode(id) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup()
return c:IsSetCard(0x5344) and c:IsType(TYPE_MONSTER) and not c:IsCode(id) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.thfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) and e:GetHandler():IsAbleToRemove() end
......
......@@ -118,13 +118,6 @@ function s.allo(e,tp,eg,ep,ev,re,r,rp)
if x>0 then
Duel.Damage(1-tp,x*500,REASON_EFFECT)
end
if Duel.GetTurnPlayer()==tp and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DEFENSE_ATTACK)
e1:SetValue(1)
c:RegisterEffect(e1)
end
end
function s.zako(c,atk)
return c:IsFaceup()
......
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