netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Tori Hanzo Breaks Net damage

Open PinkWarrior opened this issue 8 years ago • 8 comments

Hi dunno if this has been brought up before or not but this seems quite consistent whenever Tori Hanzo triggers to replace Net with Brain from that point on Net damage no longer makes the runner discard at random it still appears in log but nothing happens.

I had been using it with Hokusai Grid &/ House Of Knives in case it's linked to those cards.

PinkWarrior avatar Mar 11 '18 14:03 PinkWarrior

To make sure I understand you correctly, do you mean that you use House of Knives, Tori makes it brain, then Hokusai doesn't do damage? In what other situations does this happen?

Does that it "still appears in log" mean that 'Corp uses Hokusai Grid to do 1 net damage' without 'Runner trashes Card due to damage'?

In relation to a previous bug, do you ever see Hokusai Grid logging 2 damage from a single run?

PesiTheWizard avatar Mar 11 '18 15:03 PesiTheWizard

Galactic-sized sigh. I can barely bring myself to look at this project at all anymore, and I for damned sure can't bear to struggle with Tori Hanzo AGAIN.

JoelCFC25 avatar Mar 11 '18 16:03 JoelCFC25

@PesiTheWizard yes that is correct Tori makes the first Net brain and then for the rest of the game net damage doesn't do anything the 'Corp uses Hokusai Grid to do 1 net damage' still appears in the log along with anything else that deals Net damage but nothing actually happens. Additionally no I've not noticed it logging Hokusai twice in a single run. however the /net-damage command also fails to work in this situation.

@JoelCFC25 ah i hadn't realised it was such a sticking point i just was playing and the bug occurred seemingly every time so i felt i should report it. I am not a programmer my self so reporting bug is all i can really do to help out.

PinkWarrior avatar Mar 11 '18 17:03 PinkWarrior

No, you're not doing anything wrong--by all means let us know. I just have a lot of scar tissue from this card, so I just regard its behavior, all the corner cases, and the annoying rulings associated with it one big preposterously stupid annoyance. :)

JoelCFC25 avatar Mar 11 '18 17:03 JoelCFC25

@JoelCFC25 well i can certainly understand that, wasn't it ruled at one point that even if the net was prevented it could still do the brain. I know it's had some silly rulings in the past.

PinkWarrior avatar Mar 11 '18 17:03 PinkWarrior

This certainly explains a lot about the results of the latest UCF test (#2619)

PesiTheWizard avatar Mar 11 '18 18:03 PesiTheWizard

I can tell that :damage-replace true is not being dropped from [:damage] in state after Tori usage, which short circuits resolve-damage. Compare to answering "no" to Tori, which does dissoc this key. There has to have been a reason for this, but it's lost from my memory.

EDIT: OK, it was to prevent dealing double damage. Maybe in the case of answering "yes" to Tori, this key needs to be dropped at the end of resolve-damage instead of in the card def.

JoelCFC25 avatar Mar 11 '18 23:03 JoelCFC25

Here's what you can do to grab the glory:

We need to add (swap! state update-in [:damage] dissoc :damage-replace) towards the end of the resolve-damage function. Make it the penultimate line, for example.

In that same resolve-damage function, you can slip the type of damage into the card trashing message:
(str "trashes " trashed-msg " due to " (name type) " damage")

JoelCFC25 avatar Mar 12 '18 00:03 JoelCFC25