From 18b8ec2594cd4a8748d8c69a82f61c8637ef400e Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 12 Sep 2006 16:17:57 +0000 Subject: - 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 --- src/map/status.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/map/status.c') 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. } -- cgit v1.2.3-70-g09d2