diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-01 12:34:15 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-01 12:34:15 -0400 |
commit | eb990acb343a25f97b3db9d97aaf2e5492d92900 (patch) | |
tree | 9c2da413e507ce81a1a1fea68fbc53db4c9b9641 | |
parent | 16c91bb089873729a0a923b267fb0f0afd980925 (diff) | |
download | tmwa-eb990acb343a25f97b3db9d97aaf2e5492d92900.tar.gz tmwa-eb990acb343a25f97b3db9d97aaf2e5492d92900.tar.bz2 tmwa-eb990acb343a25f97b3db9d97aaf2e5492d92900.tar.xz tmwa-eb990acb343a25f97b3db9d97aaf2e5492d92900.zip |
send hp 0 in pc_readparam when PC is dead
-rw-r--r-- | src/map/pc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 63b1497..6057278 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3435,6 +3435,8 @@ int pc_readparam(dumb_ptr<block_list> bl, SP type) val = sd ? pc_nextjobexp(sd) : 0; break; case SP::HP: + if (sd && pc_isdead(sd)) + break; // val = 0 val = battle_get_hp(bl); break; case SP::MAXHP: |