Hello everyone, I scripted a card with this effect:
Eidolon - Shiva
When a "l'Cie" or "Eidolon" monster you control attacks and your opponent activates a card effect: You can discard this card from your hand; negate the activation of that card and if you do, destroy it.
However, when I have this card in my hand I get the error message "47: attempt to index a nil value"
That's the function:
function c9127710.negcon(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetAttacker():IsControler(tp) and (Duel.GetAttacker():IsSetCard(0x10e) or Duel.GetAttacker():IsSetCard(0x10f)))
and rp~=tp and Duel.IsChainNegatable(ev)
end
I don't know what's wrong there. Help appreciated. Thanks! :)