I'v got same problem with you when i was scripting a card for the first time
basically, i dunno how to make an effect that included 3 types of effects (monster effect,spell, trap).
i make a scripts like yours, but it doesn't work.
i looks at the other scripts, n there's no function like that.
then i make an IMO that
re:IsActiveType(TYPE_SPELL+TYPE_TRAP+TYPE_MONSTER) is not a fuction that list in utility.lua
so.. for effect like that, you have to make it split. or included all of them in the same one.
like this:
re:IsActiveType(TYPE_EFFECT)
OR
YOU DONT HAVE TO WRITE THAT FUNCTION.
basically,
SetCode(EFFECT_INDESTRUCTABLE_EFFECT) is included all of them. It couldn't be destroyed by any other effect that would destroy it, included spell/trap or monster effect.
and you just have to change the value to e1:SetValue(1)
hope this helps
Edited by user
2016-07-10T03:03:16Z
|
Reason: Not specified