/ home / Bugs / general bug with troop ai /

General Bug with troop AI

4:08 am, June 27, 2016 1,090 239 1.2 @ 200 wpmrate up Grantabulous source
1
There is a funny bug for some troops' AI programming. As we all know, troops have quite clever AI and they know not to attack a unit that is about to be killed by something else. Normally this is very sensible. However in some circumstances this clever algorithm makes a troop commit suicide when it wouldn't have died at all if it wasn't trying to be too clever.

When spear goblins are about to kill a valkerie they go to throw their spear, but knowing it's about to die stop the animation and run forward instead. As a result the valk is not yet dead and they move forward into an attack they would have been safe from if they threw their spears instead.

You might think it's no big deal, and it probably isn't in the scheme of things. But if there is going to be an algorithm making their targeting smarter, it should be adjusted so that the algorithm itself doesn't cause ranged troops to throw themselves into melee units that are not dead.

Simple fix : if ranged unit decides to invoke clever algorithm that checks if target will die before it attacks, check first whether target will make an attack before dying. If so, do not run forwards and cancel your smart algorithm that tells you not to bother attacking.
forum.supercell.net
4:08 am, June 27, 2016 1,090 239 source

Comments

Chat

Site Rules

  1. Please be respectful.
  2. Only content directly related to Clash Royale belongs here.
  3. No image macros or memes.
  4. Comments + Content that don't contribute to the discussion or are abusive may be removed.
  5. No sexist, racist or homophobic language.
  6. Posting NSFW material is not allowed.

Links

Latest