It is currently 07 Jul 2021, 11:58
   
Text Size

Shandalar - Program Bugs

AI attack vs-Attack each turn if able (fix completed)

 

I just wanted to remind the problem with AI attacking without considering the blocker if the blocker has the ability "attack each turn if able" like Juggernaut or (less likely is forced to attack if human has only such a card on board) which was known in manalink:
viewtopic.php?f=110&t=4134&p=83625&hilit=Juggernaut#p83388
and answer to it by Gargaroz:
viewtopic.php?f=110&t=4134&p=83625&hilit=Juggernaut#p83625
but the same happens with Bloodrock Cyclops at least in shandalar not tested in manalink.
Edit:it happens with Phyrexian Juggernaut as well so safe to assume that affects all others with the same ability.
Last edited by Aswan jaguar on 03 Jun 2015, 17:27, edited 3 times in total.

Comments

Posted by Korath » 01 Aug 2015, 03:06

#633 related.
Last edited by Korath on 01 Aug 2015, 03:06, edited 1 time in total.

Posted by Korath » 18 Oct 2015, 13:58

I wonder if it would help to make them only attack-if-able during their controller's turn.

Posted by Korath » 25 Feb 2016, 20:10

commit c63d0c798b4007e81cd776e0fc782fa2e5ec2ebf
Author: Korath <dgk@Dirge.none>
Date: Thu Feb 25 15:10:04 2016 -0500

[AS] FIX #598: creatures are forced to attack only on controller's turn

Apparently, STATE_UNKNOWN8000 is used to mean both something similar to
"selected to attack" and to "selected to block". Thus, when
attacks_each_turn_if_able() or its variants attacks_each_turn_if_able_if() or
attached_attacks_each_turn_if_able() try to force an attack on the other
player's turn, the AI makes attacking choices as if these cards were already
assigned to block something else.

Fixing the combat AI directly isn't on the table, but preventing the attacks-
if-able functions from doing anything on the opponent's turn works around it.

Ticket details

  • Ticket ID: 598
  • Project: Shandalar
  • Status: Fix completed
  • Component: Duel AI
  • Project version: Ruined Tower 2
  • Priority: Normal
  • Severity: Normal
  • Assigned to: Korath
  • Reported by: Aswan jaguar
  • Reporter's tickets: List all tickets
  • Reported on: 02 Jun 2015, 20:55
  • Last visited by Korath » 04 Mar 2016, 20:29.
 

Login Form