always default-fumble to report failure.

This commit is contained in:
Enno Rehling 2005-10-08 21:43:24 +00:00
parent 9230a0a074
commit 8b0518690f
2 changed files with 5 additions and 3 deletions

View File

@ -1269,7 +1269,8 @@ do_fumble(castorder *co)
switch (rand() % 10) {
case 0:
/* wenn vorhanden spezieller Patzer, ansonsten nix */
sp->patzer(co);
if (sp->patzer) sp->patzer(co);
else patzer(co);
break;
case 1:

View File

@ -177,7 +177,7 @@ extern "C" {
SPL_TYBIED_FUMBLESHIELD,
SPL_SHADOWKNIGHTS,
LUASPL_FIRESWORD,
SPL_CREATE_TACTICCRYSTAL,
LUASPL_CREATE_TACTICCRYSTAL,
SPL_ITEMCLOAK,
SPL_FIREWALL,
SPL_WISPS,
@ -287,7 +287,8 @@ extern "C" {
extern struct spell_list * spells;
extern void init_spells(void);
extern void register_spell(struct spell * sp);
struct spell * find_spell(magic_t mtype, const char * name);
extern struct spell * find_spell(magic_t mtype, const char * name);
extern void patzer(struct castorder *co);
#ifdef __cplusplus
}