Commit 4a291aa1 authored by VanillaSalt's avatar VanillaSalt

fix

parent eee1fe7b
......@@ -86,6 +86,7 @@ function c11221418.limcon(e)
return e:GetLabelObject():GetLabel()<3
end
function c11221418.countop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return end
local ct=e:GetLabel()
e:SetLabel(ct+1)
end
......
......@@ -20,7 +20,7 @@ function c20349913.condition(e,tp,eg,ep,ev,re,r,rp)
end
function c20349913.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,20349913)==0
and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD,nil)
Duel.RegisterFlagEffect(tp,20349913,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
......
......@@ -36,7 +36,8 @@ end
c31801517.xyz_number=62
function c31801517.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return (c==Duel.GetAttacker() or c==Duel.GetAttackTarget()) and Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL
return (c==Duel.GetAttacker() or c==Duel.GetAttackTarget())
and Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and not Duel.IsDamageCalculated()
end
function c31801517.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -36,7 +36,7 @@ function c59911557.tgcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function c59911557.tgfilter(c)
return c:IsSetCard(0x59) and c:IsAbleToGrave()
return c:IsSetCard(0x59) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c59911557.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true 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