It is currently 20 Apr 2024, 02:51
   
Text Size

[still bugged]Rain of Gore

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

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

[still bugged]Rain of Gore

Postby Nexhro » 29 Jan 2014, 16:15

Describe the Bug:
A player controlling Venser's Journal can gain life from it when his/her opponent controls Rain of Gore.edit
Further testing proved that only Rain of Gore 's controller is affected by its effect in general.

Which card did behave improperly ?
- Rain of Gore

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
CIA v2, Duel

What exactly should be the correct behavior/interaction ?
If a spell or ability would cause its controller to gain life, that player loses that much life instead.

Are any other cards possibly affected by this bug ?
Possibly other permanents with an activated or triggered ability causing lifegain (tested with Ajani's Mantra => same bug).
Possibly instants or sorceries that cause Rain of Gore 's controller's opponent to gain life.

Edit: Clarified issue. Not sure why card highlightning doesn't work anymore after I've editted, but here's the card for reference.
Attachments
RainOGore.png
RainOGore2.zip
Opponent controlling Rain of Gore and lifegain source
(2.74 KiB) Downloaded 239 times
RainOGore1.zip
Player controlling Rain of Gore, opponent controlling lifegain source
(2.92 KiB) Downloaded 241 times
Last edited by Aswan jaguar on 19 Feb 2022, 09:45, edited 6 times in total.
Reason: still bugged
User avatar
Nexhro
 
Posts: 1613
Joined: 23 Jan 2014, 18:08
Location: HRO, UTC +1
Has thanked: 78 times
Been thanked: 103 times

Re: [confirmed]Rain of Gore

Postby Korath » 30 Jan 2014, 01:13

We can't do Rain of Gore properly without a great deal of effort, since the gain_life() function doesn't get told whose effect is causing gain of life. Same as Psychic Purge and Guerrilla Tactics and Spiritual Focus, which can't tell whose effect caused you to discard; but for Rain of Gore, the approximation is much more approximate, enough so that it's basically a different card than what was printed.
Last edited by Aswan jaguar on 19 Feb 2022, 07:58, edited 1 time in total.
Reason: strikethrough fixed
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [waitlisted-aproximated]Rain of Gore

Postby Aswan jaguar » 19 Feb 2022, 07:35

Fixed by drool66 in commit 218c226.
---
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: [fixed/closed]Rain of Gore

Postby Korath » 19 Feb 2022, 08:32

Still doesn't check the controller. Trivially provable by casting it, then casting a Stream of Life on the AI.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [fixed/closed]Rain of Gore

Postby Aswan jaguar » 19 Feb 2022, 09:44

In the case you are saying, it shouldn't trigger as the controller of Stream of Life isn't AI, right?
I didn't test that, concentrating on the original bug which is "fixed" as back then Rain of Gore affected only Rain of Gore's controller.
---
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: [still bugged]Rain of Gore

Postby drool66 » 19 Feb 2022, 19:26

Korath, it's working fine for me. Did you rebuild Magic.exe for EA_LICH?
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

Re: [still bugged]Rain of Gore

Postby Korath » 19 Feb 2022, 21:23

It can't possibly be working; gain_life() doesn't have access to the controller of the spell or ability. Look, try it with one of the cards templated "Each player gains [some amount of] life." Most aren't in Manalink, but Putrid Warrior or Triskaidekaphobia are reasonably easy to test if you pick the gain life mode. Only the player who controls the trigger should lose life.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [still bugged]Rain of Gore

Postby drool66 » 19 Feb 2022, 21:48

I see. So it currently works as "If a spell or ability would cause a player to gain life, that player loses that much life instead."
Maybe not that hard to do as a find and replace, kind of how I did counters to get Nest of Scarabs working. Then we can just pass the controller of the effect as trigger_cause, since it's currently unused in TRIGGER_GAIN_LIFE.encode it in trigger_cause of XTRIGGER_REPLACE_GAIN_LIFE.
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

Re: [still bugged]Rain of Gore

Postby Korath » 19 Feb 2022, 22:05

I'd be wary of passing anything other than a card in trigger_cause (unless trigger_cause_controller is -1); like affected_card_controller/affected_card, there's places scattered about that treat the pair as identifying a card instance if it looks like one. Change of control notably doesn't, though it really should.

Genuinely separate bug with this card, newly-introduced: lifelinked damage caused by a spell or ability is no longer affected, and should be. It's just combat damage with lifelink that Rain of Gore doesn't replace. And I suppose noncombat damage with lifelink if it's somehow caused by something that's not a spell or ability, though I can't think of how that could happen offhand.

This is the actual hard part of Rain of Gore, and the reason why I haven't implemented it in Shandalar: it's easy, though extremely tedious, to add a controller-of-spell-or-ability parameter to gain_life(), but you'd have to do the same for all sources of noncombat damage too, and propagate that all the way down until it gets to the gain_life call. The controller of the damage isn't enough; consider cards like Tracker or ones that cause creatures to fight. All this for the off chance that the damage source has lifelink and this one card that's been out of standard for fifteen years and was never popular in any other format happens to be on the bf. It's like Artificial Evolution: too much effort for too little return, and even there New Blood would be able to use the same framework.

Oh, and Sanctimony and Whimsy still use the exe version of gain_life().
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [still bugged]Rain of Gore

Postby drool66 » 20 Feb 2022, 20:48

I see. I'll change the instructions to only call gain_life_from_lifelink if:
instance->token_status & (STATUS_COMBAT_DAMAGE|STATUS_FIRST_STRIKE_DAMAGE)
I'll also move the flag from trigger_cause to a new global(ugh...), and stop there for now. Of course, that means the name isn't entirely accurate any more.
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 77 guests


Who is online

In total there are 77 users online :: 0 registered, 0 hidden and 77 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 77 guests

Login Form