[Ohrrpgce] [ohrrpgce/ohrrpgce] Spread Attacks Use Outdated Target Information (#380)

Ralph Versteegen notifications at github.com
Fri Dec 17 14:58:26 PST 2021


> Comment author: @bob-the-hamster
> 
> Actually, if I recall correctly there is a lot of weird voodoo that happens in targeting when attacks are chained together. There are situations where the second part of a chain will strictly prefer the previous target set even when it differs from the target set you would get if you used the second part of the chain directly...

This is not the case, there's apparently no condition in which the targets get reused even if the targetting type/class differs. In `spawn_chained_attack`:

```freebasic
  IF chained_attack.targ_set <> attack.targ_set OR _
     chained_attack.targ_class <> attack.targ_class OR _
     chained_attack.targ_set = 3 OR chained_attack.prefer_targ > 0 THEN
   'if the chained attack has a different target class/type then re-target
   'also retarget if the chained attack has target setting "random roulette"
   'also retarget if the chained attack's preferred target is explicitly set.
   'This queues the attack.
   autotarget bat.acting, chained_attack, bslot(), , blocking, ch.dont_retarget
```
And that IF is bypassed only when the chain fails.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/380#issuecomment-997078570
You are receiving this because you are subscribed to this thread.

Message ID: <ohrrpgce/ohrrpgce/issues/380/997078570 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20211217/10f04492/attachment.html>


More information about the Ohrrpgce mailing list