<p></p>
<blockquote>
<p dir="auto">Comment author: <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/bob-the-hamster/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bob-the-hamster">@bob-the-hamster</a></p>
<p dir="auto">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...</p>
</blockquote>
<p dir="auto">This is not the case, there's apparently no condition in which the targets get reused even if the targetting type/class differs. In <code>spawn_chained_attack</code>:</p>
<div class="highlight highlight-source-vbnet"><pre>  <span class="pl-k">IF</span> <span class="pl-smi">chained_attack.targ_set</span> <span class="pl-smi"><></span> <span class="pl-smi">attack.targ_set</span> <span class="pl-k">OR</span> <span class="pl-smi">_</span>
     <span class="pl-smi">chained_attack.targ_class</span> <span class="pl-smi"><></span> <span class="pl-smi">attack.targ_class</span> <span class="pl-k">OR</span> <span class="pl-smi">_</span>
     <span class="pl-smi">chained_attack.targ_set</span> <span class="pl-smi">=</span> <span class="pl-s">3</span> <span class="pl-k">OR</span> <span class="pl-smi">chained_attack.prefer_targ</span> <span class="pl-smi">></span> <span class="pl-s">0</span> <span class="pl-k">THEN</span>
   <span class="pl-c">'if the chained attack has a different target class/type then re-target</span>
   <span class="pl-c">'also retarget if the chained attack has target setting "random roulette"</span>
   <span class="pl-c">'also retarget if the chained attack's preferred target is explicitly set.</span>
   <span class="pl-c">'This queues the attack.</span>
   <span class="pl-smi">autotarget</span> <span class="pl-smi">bat.acting,</span> <span class="pl-smi">chained_attack,</span> <span class="pl-smi">bslot(),</span> <span class="pl-smi">,</span> <span class="pl-smi">blocking,</span> <span class="pl-smi">ch.dont_retarget</span></pre></div>
<p dir="auto">And that IF is bypassed only when the chain fails.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/380#issuecomment-997078570">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZQ7DGS4NBYQJS3APD3URO6BFANCNFSM5KJ33B7Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AMWGWZTGKB6YZFZAU6G5P53URO6BFA5CNFSM5KJ33B72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHNXDMKQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><ohrrpgce/ohrrpgce/issues/380/997078570</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/380#issuecomment-997078570",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/380#issuecomment-997078570",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>