RodrigoToroIcarte / IIC2113-2023-1

6 stars 0 forks source link

[Entrega 3] Duda Reversals-Tests 15 #85

Open jlizamajara opened 1 year ago

jlizamajara commented 1 year ago

Hola! Tengo una duda en esta parte del test 15 de los Reversals con efectos. Lo que no me queda claro es por qué el daño recibido por Undertaker es 5 en de 6, si la última carta jugada tenía 6 de daño y fue revertida por Rolling Takedown. Adjunto código a continuación:

THE UNDERTAKER intenta jugar la siguiente carta:
[MANEUVER] *Body Slam*. Info: 7F/6D/1SV, Maneuver, Grapple.
--------------------------------------------
MANKIND tiene la opción de revertir la carta:
--------------------------------------------
0- [REVERSAL] *Escape Move*. Info: 0F/0D, Reversal, ReversalGrapple. Effect: Reverse any Grapple maneuver and end your opponent's turn.
1- [REVERSAL] *Rolling Takedown*. Info: 1F/#D, Reversal, ReversalGrappleSpecial. Effect: Can only reverse a Grapple that does 7D or less. End your opponent's turn. # = D of maneuver card being reversed. Read as 0 when in your Ring area.
2- [REVERSAL] *Rolling Takedown*. Info: 1F/#D, Reversal, ReversalGrappleSpecial. Effect: Can only reverse a Grapple that does 7D or less. End your opponent's turn. # = D of maneuver card being reversed. Read as 0 when in your Ring area.
--------------------------------------------
(Ingresa un número entre -1 y 2)
INPUT: 1
--------------------------------------------
MANKIND revierte la carta usando:
[REVERSAL] *Rolling Takedown*. Info: 1F/#D, Reversal, ReversalGrappleSpecial. Effect: Can only reverse a Grapple that does 7D or less. End your opponent's turn. # = D of maneuver card being reversed. Read as 0 when in your Ring area.
THE UNDERTAKER recibe 5 de daño.
-------------------------------- 1/5
*Hip Toss*. Info: 0F/3D, Maneuver, Grapple.
-------------------------------- 2/5
*Bow & Arrow*. Info: 6F/6D, Maneuver, Submission.
-------------------------------- 3/5
*No Chance in Hell*. Info: 12F/0D, Reversal, ReversalAction. Effect: Reverse any ACTION card being played by your opponent from his hand. It is unsuccessful, goes to his Ringside pile, has no effect and ends his turn.
-------------------------------- 4/5
*Back Breaker*. Info: 8F/7D, Maneuver, Grapple.
-------------------------------- 5/5
*Gut Buster*. Info: 4F/5D, Maneuver, Grapple.

Muchas gracias!

RodrigoToroIcarte commented 1 year ago

Es por la habilidad de Mankind (ver https://github.com/RodrigoToroIcarte/IIC2113-2023-1/issues/65). La habilidad de Mankind le resta 1D a la maniobra. Cuando la revierte se revierte el daño neto de la maniobra (luego de aplicados los bonus de daño). Por eso Undertaker recibe 5 de daño.

jlizamajara commented 1 year ago

Entiendo! Muchas gracias. ¿Por qué en el mismo test no pasa lo mismo con esta carta?

THE UNDERTAKER intenta jugar la siguiente carta:
[MANEUVER] *Chop*. Info: 0F/2D, Action/Maneuver, Strike. Effect: As an action, you may discard this card to draw 1 card. Doing this will not cause any damage to opponent.
--------------------------------------------
MANKIND tiene la opción de revertir la carta:
--------------------------------------------
0- [REVERSAL] *Elbow to the Face*. Info: 0F/2D, Reversal, ReversalSpecial. Effect: May reverse any maneuver that does 7D or less. End your opponent's turn.
--------------------------------------------
(Ingresa un número entre -1 y 0)
INPUT: 0
--------------------------------------------
MANKIND revierte la carta usando:
[REVERSAL] *Elbow to the Face*. Info: 0F/2D, Reversal, ReversalSpecial. Effect: May reverse any maneuver that does 7D or less. End your opponent's turn.
THE UNDERTAKER recibe 2 de daño.
-------------------------------- 1/2
*Chair Shot*. Info: 10F/10D/1SV, Maneuver, Strike/ForeignObject/Heel.
-------------------------------- 2/2
*Chop*. Info: 0F/2D, Action/Maneuver, Strike. Effect: As an action, you may discard this card to draw 1 card. Doing this will not cause any damage to opponent.
--------------------------------------------
RodrigoToroIcarte commented 1 year ago

Porque el daño de Elbow to the Face es 2D fijo (no depende del daño que hace la maniobra revertida).