Commit f860105f authored by sidschingis's avatar sidschingis

fix triggering on tokens

parent 6797be2b
......@@ -49,7 +49,12 @@ function c32543380.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g, REASON_COST)
end
function c32543380.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsRelateToBattle()
local c=e:GetHandler()
local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget()
if a~=c then d=a end
return c:IsRelateToBattle() and c:IsFaceup()
and d and d:GetLocation()==LOCATION_GRAVE and d:IsType(TYPE_MONSTER)
end
function c32543380.destg(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