Don't trigger *Rage on riposte
authorNicholas Feinberg <pleasingfung@gmail.com>
Sat, 1 Aug 2020 18:35:35 +0000 (11:35 -0700)
committerNicholas Feinberg <pleasingfung@gmail.com>
Sat, 1 Aug 2020 18:35:35 +0000 (11:35 -0700)
Similarly to minotaur headbutt and hydra head-chopping, effects that
aren't under the player's control shouldn't trigger nasty consequences
for them.

crawl-ref/source/melee-attack.cc

index b86daa7..bc7a701 100644 (file)
@@ -228,7 +228,7 @@ bool melee_attack::handle_phase_attempted()
             return false;
     }
 
-    if (attacker != defender)
+    if (attacker != defender && !is_riposte)
     {
         // Allow setting of your allies' target, etc.
         attacker->attacking(defender);