diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-06-20 18:04:28 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-06-20 18:04:28 +0200 |
commit | 4284644f2795215f8401653ced42ac61e508fae1 (patch) | |
tree | 64dd59ebfd33be0d90ab7dd54aab1cec08e523e9 /src | |
parent | 69eaad480cba9f94be8fe16173f94dabf3d5c1c4 (diff) | |
download | tmwa-4284644f2795215f8401653ced42ac61e508fae1.tar.gz tmwa-4284644f2795215f8401653ced42ac61e508fae1.tar.bz2 tmwa-4284644f2795215f8401653ced42ac61e508fae1.tar.xz tmwa-4284644f2795215f8401653ced42ac61e508fae1.zip |
Don't allow magic casts when player is dead.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/magic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/magic.c b/src/map/magic.c index 8800bb3..fcf3ad6 100644 --- a/src/map/magic.c +++ b/src/map/magic.c @@ -56,6 +56,9 @@ int magic_message(character_t *caster, char *spell_, size_t spell_len) { + if (pc_isdead(caster)) + return 0; + int power = caster->matk1; char *invocation_base = spell_ + 8; char *source_invocation = strchr(invocation_base, ':'); |