Commit 3575c038 authored by argon.sun's avatar argon.sun

fix

parent 1309f59f
......@@ -63,7 +63,7 @@ function c21350571.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c21350571.eqlimit(e,c)
return c:GetControler()==e:GetOwnerPlayer() and c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR)
return c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR)
end
function c21350571.drfilter(c,rc)
return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and c:GetReasonCard()==rc
......
......@@ -36,9 +36,7 @@ function c21954587.cfilter(c)
end
function c21954587.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21954587.cfilter,tp,LOCATION_HAND,0,2,e:GetHandler()) end
Duel.ConfirmCards(1-tp,e:GetHandler())
Duel.DiscardHand(tp,c21954587.cfilter,2,2,REASON_COST+REASON_DISCARD,e:GetHandler())
Duel.ShuffleHand(tp)
end
function c21954587.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -31,6 +31,7 @@ function c68396778.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoGrave(tc,REASON_EFFECT)
if tc:IsLocation(LOCATION_GRAVE) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c68396778.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
......@@ -19,13 +19,6 @@ function c74064212.initial_effect(c)
e2:SetCondition(c74064212.atkcon)
e2:SetValue(1000)
c:RegisterEffect(e2)
--equip limit
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_EQUIP_LIMIT)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetValue(c74064212.eqlimit)
c:RegisterEffect(e3)
end
function c74064212.eqcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -47,6 +40,14 @@ function c74064212.eqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Equip(tp,c,tc)
--equip limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(1)
e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1)
end
end
function c74064212.atkcon(e)
......@@ -54,6 +55,3 @@ function c74064212.atkcon(e)
local ec=e:GetHandler():GetEquipTarget()
return ec and (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and ec:IsRelateToBattle()
end
function c74064212.eqlimit(e,c)
return c:GetControler()==e:GetHandler():GetControler()
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