summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-12 21:34:38 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-12 21:34:38 +0000
commit00e418c45bb0a96117a4b6b83a8fe5a6f5b2c868 (patch)
tree5a39e94964fb6dd9fa0bcf7f56baf65b30b6d348 /src/map/atcommand.c
parent3c9a4b95c3612e0925baf1b116460e0c07cd6d2f (diff)
downloadhercules-00e418c45bb0a96117a4b6b83a8fe5a6f5b2c868.tar.gz
hercules-00e418c45bb0a96117a4b6b83a8fe5a6f5b2c868.tar.bz2
hercules-00e418c45bb0a96117a4b6b83a8fe5a6f5b2c868.tar.xz
hercules-00e418c45bb0a96117a4b6b83a8fe5a6f5b2c868.zip
- @heal no longer displays a healing animation. Fixes the client believing you couldn't be healed more than 32K.
- Now you can use any skills (except encore/dancing ones) while under Longing for Freeding. - Now you can use any skills while under Marionette Control. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7111 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 168f6cb62..9ac4af66b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2488,7 +2488,7 @@ int atcommand_heal(
sscanf(message, "%d %d", &hp, &sp);
if (hp == 0 && sp == 0) {
- if (!status_heal(&sd->bl, sd->battle_status.max_hp, sd->battle_status.max_sp, 2))
+ if (!status_percent_heal(&sd->bl, 100, 100))
clif_displaymessage(fd, msg_table[157]); // HP and SP are already with the good value.
else
clif_displaymessage(fd, msg_table[17]); // HP, SP recovered.
@@ -2496,7 +2496,7 @@ int atcommand_heal(
}
if(hp > 0 && sp >= 0) {
- if(!status_heal(&sd->bl, hp, sp, 2))
+ if(!status_heal(&sd->bl, hp, sp, 0))
clif_displaymessage(fd, msg_table[157]); // HP and SP are already with the good value.
else
clif_displaymessage(fd, msg_table[17]); // HP, SP recovered.
@@ -2513,7 +2513,7 @@ int atcommand_heal(
//Opposing signs.
if (hp) {
if (hp > 0)
- status_heal(&sd->bl, hp, 0, 2);
+ status_heal(&sd->bl, hp, 0, 0);
else {
status_damage(NULL, &sd->bl, -hp, 0, 0, 0);
clif_damage(&sd->bl,&sd->bl, gettick(), 0, 0, -hp, 0 , 4, 0);
@@ -2522,7 +2522,7 @@ int atcommand_heal(
if (sp) {
if (sp > 0)
- status_heal(&sd->bl, 0, sp, 2);
+ status_heal(&sd->bl, 0, sp, 0);
else
status_damage(NULL, &sd->bl, 0, -sp, 0, 0);
}