summaryrefslogtreecommitdiff
path: root/src/map/status.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 04:07:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 04:07:27 +0000
commit6343274ad8e270888df854926bc47a0bc5713f47 (patch)
treec33b3baa689b1f352ed75fc57ba7645bd1edce78 /src/map/status.h
parentcf4023f83aa1e2f5ed3009f0e7d020e387d6ef57 (diff)
downloadhercules-6343274ad8e270888df854926bc47a0bc5713f47.tar.gz
hercules-6343274ad8e270888df854926bc47a0bc5713f47.tar.bz2
hercules-6343274ad8e270888df854926bc47a0bc5713f47.tar.xz
hercules-6343274ad8e270888df854926bc47a0bc5713f47.zip
- Changed status_heal and status_damage to receive signed int values. They will invoke each other as needed when the passed values are negative.
- Updated battle_calc_attack to set atk type to ATK_FLEE and dmotion to 0 when the damage is less than 1 (missed or absorbed) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6832 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.h')
-rw-r--r--src/map/status.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.h b/src/map/status.h
index 75c446c1e..25f6b6734 100644
--- a/src/map/status.h
+++ b/src/map/status.h
@@ -502,7 +502,7 @@ enum {
#define SCB_PC 0x80000000
#define SCB_ALL 0x7FFFFFFF
-int status_damage(struct block_list *src,struct block_list *target,unsigned int hp, unsigned sp, int walkdelay, int flag);
+int status_damage(struct block_list *src,struct block_list *target,int hp,int sp, int walkdelay, int flag);
//Define for standard HP damage attacks.
#define status_fix_damage(src, target, hp, walkdelay) status_damage(src, target, hp, 0, walkdelay, 0)
//Define for standard HP/SP damage triggers.
@@ -516,7 +516,7 @@ int status_percent_change(struct block_list *src,struct block_list *target,signe
//Instant kill with no drops/exp/etc
//
#define status_kill(bl) status_percent_damage(NULL, bl, 100, 0)
-int status_heal(struct block_list *bl,unsigned int hp,unsigned int sp, int flag);
+int status_heal(struct block_list *bl,int hp,int sp, int flag);
int status_revive(struct block_list *bl, unsigned char per_hp, unsigned char per_sp);
//Define for copying a status_data structure from b to a, without overwriting current Hp and Sp, nor messing the lhw pointer.