Commit 62424159 authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent 9d198d6d
......@@ -56,7 +56,7 @@ function c14801725.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c14801725.dicost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c14801725.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -58,9 +58,9 @@ function c81011015.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(eg,REASON_EFFECT)
end
end
function c81011015.tgfilter(e,c)
return c:GetAttack()<e:GetHandler():GetAttack() and c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT)
function c81011015.tgfilter(c,atk)
return c:IsFaceup() and c:GetAttack()<atk and c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT)
end
function c81011015.tgcon(e)
return Duel.IsExistingMatchingCard(c81011015.tgfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) and e:GetHandler():GetAttack()<=800
return Duel.IsExistingMatchingCard(c81011015.tgfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetAttack()) and e:GetHandler():GetAttack()<=800
end
......@@ -2,7 +2,7 @@
function c81011403.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,nil,3,3)
aux.AddLinkProcedure(c,nil,2,2)
--direct attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -22,7 +22,8 @@ function c81013024.initial_effect(c)
c:RegisterEffect(e2)
end
function c81013024.condition1(e,tp,eg,ep,ev,re,r,rp)
return (not re:GetHandler():IsLocation(LOCATION_ONFIELD) and not re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return (loc&LOCATION_ONFIELD)==0 and Duel.IsChainNegatable(ev)
end
function c81013024.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2500)
......
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