summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 16:17:57 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 16:17:57 +0000
commit18b8ec2594cd4a8748d8c69a82f61c8637ef400e (patch)
treea2a6dc8206c57bc0e47cd46378ffca7a4524d598 /src/map/status.c
parentbe57ed26ac11ed0bb696acb031df527e3edf3130 (diff)
downloadhercules-18b8ec2594cd4a8748d8c69a82f61c8637ef400e.tar.gz
hercules-18b8ec2594cd4a8748d8c69a82f61c8637ef400e.tar.bz2
hercules-18b8ec2594cd4a8748d8c69a82f61c8637ef400e.tar.xz
hercules-18b8ec2594cd4a8748d8c69a82f61c8637ef400e.zip
- Updated battle_switch to use strncmpi instead of strcmpi, it makes it so using "yessir" will match "yes", this is actually needed because if you set a config setting to "yes " (notice the trailing space), then the map config engine fails to read it right, and will set the config setting to 0 (no).
- Added function pc_resethate to more easily handle Angel trigger - Made feel_var and hate_var static variables to pc.c to simplify things and avoid errors due to redundancy. - Updated the show_mob_info setting to add another space to the separating pipes, so that each field is separated by " | " instead of " |". git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8721 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7cf7109b2..341e7e85e 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -7022,10 +7022,7 @@ static int status_natural_heal(DBKey key,void * data,va_list app)
(sd->class_&MAPID_UPPERMASK) == MAPID_STAR_GLADIATOR &&
rand()%10000 < battle_config.sg_angel_skill_ratio
) { //Angel of the Sun/Moon/Star
- malloc_set(sd->hate_mob, 0, sizeof(sd->hate_mob));
- pc_setglobalreg(sd,"PC_HATE_MOB_STAR", 0);
- pc_setglobalreg(sd,"PC_HATE_MOB_SUN", 0);
- pc_setglobalreg(sd,"PC_HATE_MOB_MOON", 0);
+ pc_resethate(sd);
pc_resetfeel(sd);
//TODO: Figure out how to make the client-side msg show up.
}