It is currently 16 Apr 2024, 05:25
   
Text Size

[confirmed]Vigean Hydropon

Report wrong Card behavior to get it fixed.
PLEASE ADD SAVEGAMES TO YOUR TOPIC !

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

[confirmed]Vigean Hydropon

Postby Konatsu » 30 Jun 2022, 19:30

If Vigean Hydropon loses its ability by Lignify or Oko, Thief of Crowns, etc., it cannot attack.
However, it can block.
Last edited by Aswan jaguar on 01 Jul 2022, 14:09, edited 1 time in total.
Reason: confirmed
Konatsu
 
Posts: 92
Joined: 14 Feb 2022, 18:39
Has thanked: 0 time
Been thanked: 1 time

Re: Vigean Hydropon

Postby Aswan jaguar » 01 Jul 2022, 14:07

I confirm this bug which is global.
Is the following check good enough, needs refinement or it will cause issues I can't think off? I did few basic tests without issues but maybe I didn't look at the right places for bugs. I added a check for is_humiliated() in line
Code: Select all
(!(instance->token_status & STATUS_CANT_ATTACK) || is_humiliated(player, card, AL_STATIC))
in int can_attack()
Code: Select all
int can_attack(int player, int card)
{
  //0x434c30
  card_instance_t* instance = get_card_instance(player, card);

  if (instance->internal_card_id >= 0
     && (!(instance->regen_status & KEYWORD_DEFENDER)
        || (instance->token_status & STATUS_WALL_CAN_ATTACK))
     && (is_what(player, card, TYPE_CREATURE) || (instance->state & STATE_NONCREATURE_CAN_ATTACK))
     && !(instance->state & (STATE_OUBLIETTED|STATE_SUMMON_SICK|STATE_TAPPED))
     && (!(instance->token_status & STATUS_CANT_ATTACK) || is_humiliated(player, card, AL_STATIC)) )
   {
..... rest code
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: [confirmed]Vigean Hydropon

Postby drool66 » 03 Jul 2022, 07:06

I think that would mean something like Cage of Hands or Halls of Mist wouldn't work with a Humility in play. Immovable Rod and Opportunistic Dragon wouldn't work at all. What might be the best solution is have cannot_attack() and cant_block() take the player/card arguments of the card issuing the ability and check that against is_humiliated(... AL_STATIC) in the definition of cannot_attack()/cannot_block(). I count 56 hits for cannot_attack(), at least one of which (Vent Sentinel) should probably be removed because it looks like it stands in for defender ability, and 201 hits for cannot_block(). Could probably be knocked out in under an hour.
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

Re: [confirmed]Vigean Hydropon

Postby Aswan jaguar » 03 Jul 2022, 13:20

drool66 wrote: cannot_block().
This seems to work fine why does it need to change?
You're right - that one's keyworded so it should probably be ok. Makes fixing this even easier.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 22 guests


Who is online

In total there are 22 users online :: 0 registered, 0 hidden and 22 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 22 guests

Login Form