I'm trying to create an ability whose target can only be an enemy. When the ability is used it spawns a damage dealer prefab that should damage everyone inside it, not just the enemy and not just other enemies.
Is this possible? And more generally, is it possible to separate the combatants the ability targets from the combatants it affects?
However, you could just use a game event on the spawned prefab (e.g. Trigger Enter start type event interaction) to do what you need :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!