diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-27 15:44:57 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-27 15:44:57 +0000 |
commit | 0e5784703b00fe94eb19e24298d3dde5dbc811da (patch) | |
tree | 1ef976c17a6049639fb6a7248e7dcb28e70c480d /src/map/skill.c | |
parent | e374dbba803c5d79ec3113bc80fece056193df31 (diff) | |
download | hercules-0e5784703b00fe94eb19e24298d3dde5dbc811da.tar.gz hercules-0e5784703b00fe94eb19e24298d3dde5dbc811da.tar.bz2 hercules-0e5784703b00fe94eb19e24298d3dde5dbc811da.tar.xz hercules-0e5784703b00fe94eb19e24298d3dde5dbc811da.zip |
- Now when you set the guardian's HP, if the guardian is spawned, it's HP will be updated accordingly (and if you set it to 0, the guardian is killed)
- Added functions status_set_hp/status_set_sp to set hp/sp to a given value. Applied usage of these on the Berserk and Soul Change code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7922 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 3749ce6d2..266e1201c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5200,9 +5200,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in } sp1 = sstatus->sp; sp2 = tstatus->sp; - //TODO: Will this work correctly once sp1/sp2 go above INT_MAX? - status_heal(src, 0, (signed int)(sp2-sp1), 3); - status_heal(bl, 0, (signed int)(sp1-sp2), 3); + status_set_sp(src, sp2, 3); + status_set_sp(bl, sp1, 3); clif_skill_nodamage(src,bl,skillid,skilllv,1); } break; |