From aae1026c0336f9bd280ac0d5cc8d523004adad21 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 9 Jan 2008 16:08:57 +0000 Subject: - corrected duration of sphere mines to be 30 secs regardless of skill level - Corrected duel_count/duel_list (you DON'T place variables in a .h file! That is what 'extern' is for) - Script command warpportal now places a warp in its initial state (as if a real warp portal was casted) - Updated dispell to also not remove the following effects: Hindsight, Inc Hit/Atk Rate (NPC_POWERUP), Nen, TK stances and tumble, warm and speedup1 (the other speed potion) - Chase-walking characters can now loot. - Hiding characters can't drop items now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12036 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index f16f57336..6d59c1897 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -66,6 +66,9 @@ static int GM_num = 0; #define MOTD_LINE_SIZE 128 char motd_text[MOTD_LINE_SIZE][256]; // Message of the day buffer [Valaris] +struct duel duel_list[MAX_DUEL]; +int duel_count = 0; + //Links related info to the sd->hate_mob[]/sd->feel_map[] entries const struct sg_data sg_info[3] = { { SG_SUN_ANGER, SG_SUN_BLESS, SG_SUN_COMFORT, "PC_FEEL_SUN", "PC_HATE_MOB_SUN", is_day_of_sun }, @@ -7552,6 +7555,8 @@ int do_init_pc(void) pc_readdb(); pc_read_motd(); // Read MOTD [Valaris] + memset(&duel_list[0], 0, sizeof(duel_list)); + add_timer_func_list(pc_invincible_timer, "pc_invincible_timer"); add_timer_func_list(pc_eventtimer, "pc_eventtimer"); add_timer_func_list(pc_calc_pvprank_timer, "pc_calc_pvprank_timer"); -- cgit v1.2.3-60-g2f50