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

Shandalar - Program Bugs

Roch Hydra counters on upkeep-loop (fix completed)

 

I saw AI in 2 different games to use in upkeep Rock Hydra 's ability to put counters on Rock Hydra.Both times after the counters were put on creature the game stuck in AI's for ever speculations.(the still thinking icon appeared).
Last edited by Korath on 18 Jun 2015, 08:51, edited 2 times in total.
Reason: revert self

Comments

Posted by Korath » 18 Jun 2015, 09:10

Analysis:

The AI doesn't speculate during the untap, upkeep, or draw phases/steps at all; it's completely deterministic. It also won't activate anything during those steps unless it's forced to. The vast majority of things forcing the AI to activate are upkeep triggers (and all optional triggers, not just optional upkeep ones, are forced for the AI; see #549).

There's a handful of normal activated abilities that force the AI to activate them during upkeep. The mechanism to do this is to set bits 0 and 1 of manalink_dword_736808 (0x8c7420 in Shandalar) during their EVENT_CAN_ACTIVATE. Manalink apparently has a safeguard that makes that value be ignored if the card setting it then indicates it can't be activated; Shandalar instead tries to activate it over and over again, resetting manalink_dword_736808 each time.

Posted by Korath » 18 Jun 2015, 09:11

commit 11cac733e82739c6673fe14adc2caef77c13b80b
Author: Korath <dgk@Dirge.none>
Date: Thu Jun 18 05:11:20 2015 -0400

[Shandalar] FIX #628: Rock Hydra doesn't set 736808 unless it has RRR available

Ticket details

  • Ticket ID: 628
  • Project: Shandalar
  • Status: Fix completed
  • Component: Individual Card
  • Project version: Loremaster's Tower 1
  • Priority: Normal
  • Severity: Normal
  • Assigned to: Korath
  • Reported by: Aswan jaguar
  • Reporter's tickets: List all tickets
  • Reported on: 17 Jun 2015, 14:53
  • Last visited by Korath » 04 Aug 2015, 09:31.
 

Login Form