Unsichtbare Waffen nicht mehr zuecken/wegstecken
Change-Id: I884b05ff69a29011bb50aa2f981fc4b0e941fc53
diff --git a/std/weapon/combat.c b/std/weapon/combat.c
index 4130585..d266acc 100644
--- a/std/weapon/combat.c
+++ b/std/weapon/combat.c
@@ -492,6 +492,9 @@
// Die Funktion, die das "zuecken"-Kommando auswertet
varargs int wield(string str, int silent)
{
+ if ( QueryProp(P_INVIS) )
+ return 0;
+
if ( !stringp(str) ||
(query_verb()[0..3]=="zieh" && sscanf(str,"%s hervor",str)!=1) )
{
@@ -509,7 +512,11 @@
// Die Funktion, die das "wegstecken"-Kommando auswertet
int unwield(string str)
-{ int parry;
+{
+ if ( QueryProp(P_INVIS) )
+ return 0;
+
+ int parry;
string dummy;
// Erstmal die Eingabe auswerten. Ist dies wirklich ein Kommando