db0/Android-Netrunner-OCTGN — pull request #334 by anoryx (2013-11-13 04:30:09+00:00)
Title: Patch for Issue 330.

findDMGProtection() checks the entire card for trashCost, not
differentiating between different AutoScripts with different costs. I've
fixed that here by looping over AutoScripts rather than over cards when
preventing damage. I've also tidied up a bit of the boolean logic.

I've tested both activated and triggered abilities of Feedback Filter,
as well as Deus X and Plascrete Carapace to make sure I didn't
botch anything on the way. Caveat: I only tested with runner
self-inflicted damage (R-click > Runner Actions > Suffer 1 TYPE
Damage), though I don't expect this will be different for dealing
large quantities of damage (e.g. Neural Katana, Cerebral Overwriter).

Ref: https://github.com/db0/Android-Netrunner-OCTGN/issues/330