Re: What a bug!! Loth at "May 17, 98 03:17:29 pm"

From: Christian Loth (sg618lo@UNIDUI.UNI-DUISBURG.DE)
Date: 05/17/98


Ehrm, sorry, wasn't fully awake yet, but now that I had some
coffee:

diff -u fight.c.orig fight.c
--- fight.c.orig        Sun May 17 14:57:40 1998
+++ fight.c     Sun May 17 16:13:54 1998
@@ -769,6 +769,15 @@
     }
     die(victim);
   }
+
+  /* Position update for bash */
+  if (attacktype == SKILL_BASH && dam != 0 &&
+      !(GET_LEVEL(victim) >= LVL_IMMORT &&
+        GET_LEVEL(ch) < GET_LEVEL(victim))) {
+    GET_POS(victim) = POS_SITTING;
+    WAIT_STATE(victim, PULSE_VIOLENCE);
+  }
+
 }
diff -u act.offensive.c.orig act.offensive.c
--- act.offensive.c.orig        Sun May 17 14:56:12 1998
+++ act.offensive.c     Sun May 17 15:03:35 1998
@@ -315,8 +315,6 @@
     GET_POS(ch) = POS_SITTING;
   } else {
     damage(ch, vict, 1, SKILL_BASH);
-    GET_POS(vict) = POS_SITTING;
-    WAIT_STATE(vict, PULSE_VIOLENCE);
   }
   WAIT_STATE(ch, PULSE_VIOLENCE * 2);
 }

- Chris

--
/----------------------------------------------------------------------------\
| Christian Loth                      | Meet me as the >Shadowdancer< in the |
| chris@rom.mud.de                    |           REALM OF MAGIC             |
| http://rom.mud.de/~chris            | telnet rom.mud.de 4000               |
|                                     | http://rom.mud.de/                   |
|               "The road goes ever on and on!" - Bilbo Baggins              |
\----------------------------------------------------------------------------/


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST