Page 1 of 1

AI doesn't check Grandmother Sengir ability in decisions

PostPosted: 05 Jun 2017, 11:21
by Aswan jaguar
Describe the Bug:
AI doesn't check Grandmother Sengir's ability in attacking/blocking decisions.

Which card did behave improperly?
Grandmother Sengir AI

Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
Manalink 2016/08/27: Eldritch Moon v2, duel

What exactly should be the correct behavior/interaction?
AI checks Grandmother Sengir's ability when deciding to attack or block.

Are any other cards possibly affected by this bug?
-

Re: AI doesn't check Grandmother Sengir ability in decisions

PostPosted: 29 Nov 2019, 15:46
by Aswan jaguar
I tried this method used by microprose Prodigal Sorcerer :
Code: Select all
if( event == EVENT_CHECK_PUMP && CAN_TAP(player, card) && CAN_ACTIVATE(player, card, MANACOST_XB(1, 1)) ){
      pumpable_toughness[1 - player] -= 1;
      pumpable_power[1 - player] -= 1;
   }
which works for most attack/defend decisions except from the case that AI still considers it can activate Grandmother Sengir even if Grandmother Sengir is attacking and so is normally tapped and can't be activated. As a result will happily attack with Grandmother Sengir into any creature of power of 3/3 which is not such a big problem but will do so also against first strikers with power of 3 which is suicidal.
I tried checking if is_attacking(player, card) && CAN_TAP(player, card) but this doesn't work.