Fireball() |
Problem description: When I use the skill, there are a few problems. This is a monster game where you control monsters and give them commands to fight, so the actual player doesen't use the spells, only the NPC monsters do. Even when there are no targets, it still casts it anyway and I get one of those long red error things. Also, if I use a spell, and the monster dies before the spell is finished, I get another long red error message.
I'd like to know why it still casts the spell even when there are no targets available, and how to prevent it from casting when there are no targets. Also I'd like to know how to handle this procedure to work even if the mob thats being targeted gets killed.
That would fix your second problem.