Scripting spell targets

Hello, i’m trying to script a spell that currently affects many targets including players (who shouldnt be).

Is there any way i can script that spell to target only creatures?

I'm asking this in generic type.

Take a look at this:

and here are some variants of the same functionality that allow more different kinds of checks on targets:

ps. Im not sure if these are what you are looking for, but they looked like it.

If all you want is a creature target then don’t create any spell scripts, proper entry in conditions table should be enough

Never noticed that. Thank you.

Seems cool, also works. Thanks!