Procházet zdrojové kódy

- Fixed mob-casted demonstration/quagmire being affected by the gvg_traps_all config setting.
- Moved the gvg_traps_target_all config from guild.conf to skill.conf


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5568 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex před 19 roky
rodič
revize
1b0b8a393a
3 změnil soubory, kde provedl 6 přidání a 5 odebrání
  1. 0 4
      conf-tmpl/battle/guild.conf
  2. 4 0
      conf-tmpl/battle/skill.conf
  3. 2 1
      src/map/skill.c

+ 0 - 4
conf-tmpl/battle/guild.conf

@@ -62,10 +62,6 @@ gvg_misc_attack_damage_rate: 60
 // NOTE: It's %, not absolute, so 20 is -20% of your total flee
 gvg_flee_penalty: 20
 
-// Should traps (hunter traps + quagmire) change their target to "all" inside gvg/pvp grounds? (Note 1)
-// Default on official servers: yes
-gvg_traps_target_all: yes
-
 // When the emperium is broken with WoE mode on, How Long Before The 
 // Declaration Of Castle Owner and Removal of Monsters/Players from 
 // Castle. (in milliseconds) (Note 3)

+ 4 - 0
conf-tmpl/battle/skill.conf

@@ -118,6 +118,10 @@ player_skill_nofootset: yes
 // as traps straight onto or nearby other players. (Note 1)
 monster_skill_nofootset: no
 
+// Should traps (hunter traps + quagmire) change their target to "all" inside gvg/pvp grounds? (Note 1)
+// Default on official servers: yes
+gvg_traps_target_all: yes
+
 // Whether placed down skills will check walls (Note 1)
 // (Makes it so that Storm Gust/Lord of Vermillion/etc when casted next to a wall, won't hit on the other side) 
 // NOTE: It may degrade performance to enable this.

+ 2 - 1
src/map/skill.c

@@ -6470,7 +6470,8 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
 		break;
 	case WZ_QUAGMIRE:	//The target changes to "all" if used in a gvg map. [Skotlex]
 	case AM_DEMONSTRATION:
-		if (map_flag_vs(src->m) && battle_config.vs_traps_bctall)
+		if (map_flag_vs(src->m) && battle_config.vs_traps_bctall
+			&& src->type != BL_MOB)
 			target = BCT_ALL;
 		break;
 	case HT_SHOCKWAVE:			/* ショックウェ?ブトラップ */