From c776066a6116c2e2bfcd73eab7bcf2c044442292 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 25 Apr 2006 23:58:19 +0000 Subject: - Renamed skill_clear_element_field to skill_clear_group, it accepts a flag to determine what to erase. &1 for elemental fields, &2 for traps. Also rewrote how it works to prevent missing elements (since each time an element is erased, the array contents shift) - Added battle config traps_setting to determine how traps should behave. With &1 traps are invisible if you didn't see them get set up. With &2 traps will be removed after changing maps. The default is 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6285 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index bdc81724d..8429b3d23 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3887,7 +3887,10 @@ int clif_getareachar_skillunit(struct map_session_data *sd,struct skill_unit *un WFIFOW(fd,10)=unit->bl.x; WFIFOW(fd,12)=unit->bl.y; //Use invisible unit id for traps. - WFIFOB(fd,14)=(skill_get_inf2(unit->group->skill_id)&INF2_TRAP?UNT_ATTACK_SKILLS:unit->group->unit_id); + if (battle_config.traps_setting&1 && skill_get_inf2(unit->group->skill_id)&INF2_TRAP) + WFIFOB(fd,14)=UNT_ATTACK_SKILLS; + else + WFIFOB(fd,14)=unit->group->unit_id; WFIFOB(fd,15)=0; WFIFOSET(fd,packet_len_table[0x11f]); -- cgit v1.2.3-70-g09d2