Переглянути джерело

- Trade requests will now fail when either character is unable to act (character in storage, vending, interacting with an npc, petrified, etc)
- Change the default of attack_attr_none to all classes except players. This means that pet/mobs/homun will always do normal attacks with no-element modifiers (but elemental reduction cards still apply)


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

skotlex 19 роки тому
батько
коміт
3fc01d5169
6 змінених файлів з 20 додано та 6 видалено
  1. 3 0
      Changelog-Trunk.txt
  2. 4 0
      conf-tmpl/Changelog.txt
  3. 1 1
      conf-tmpl/battle/battle.conf
  4. 1 1
      src/map/battle.c
  5. 10 3
      src/map/clif.c
  6. 1 1
      src/map/pc.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/08/09
+	* Trade requests will now fail when either character is unable to act
+	  (character in storage, vending, interacting with an npc, petrified, etc)
+	  [Skotlex]
 	* Heard skotlex voice, changed all msg_table[] into msg_txt() in atcommand.c [Toms]
 2006/08/08
 	* Fixed the char-server not invoking the party_calc_state function when the

+ 4 - 0
conf-tmpl/Changelog.txt

@@ -1,4 +1,8 @@
 Date	Added
+2006/08/09
+	* Change the default of attack_attr_none to all classes except players.
+	  This means that pet/mobs/homun will always do normal attacks with
+	  no-element modifiers (but elemental reduction cards still apply) [Skotlex]
 2006/08/08
 	* Removed config settings display_delay_skill_fail and
 	  display_snatcher_skill_fail, replaced them with display_skill_fail, which

+ 1 - 1
conf-tmpl/battle/battle.conf

@@ -133,7 +133,7 @@ vit_penalty_count_lv: 3
 attack_direction_change: 15
 
 // Remove elemental modifiers from normal attacks (skills will always have elemental modifiers)? (Note 4)
-attack_attr_none: 0
+attack_attr_none: 14
 
 // Rate at which equipment can break (base rate before it's modified by any skills)
 // 1 = 0.01% chance. Default for official servers: 0

+ 1 - 1
src/map/battle.c

@@ -4029,7 +4029,7 @@ void battle_set_defaults() {
 	battle_config.party_share_type = 0;
 	battle_config.party_hp_mode = 0;
 	battle_config.party_show_share_picker = 0;
-	battle_config.attack_attr_none = 0;
+	battle_config.attack_attr_none = ~BL_PC;
 	battle_config.mob_ghostring_fix = 1;
 	battle_config.gx_allhit = 1;
 	battle_config.gx_disptype = 1;

+ 10 - 3
src/map/clif.c

@@ -9556,10 +9556,17 @@ void clif_parse_TradeRequest(int fd,struct map_session_data *sd)
 	RFIFOHEAD(fd);	
 	t_sd = map_id2sd(RFIFOL(sd->fd,2));
 
-	// @noask [LuzZza]
-	if(t_sd && t_sd->state.noask) {
-		clif_noask_sub(sd, t_sd, 0);
+	if(clif_cant_act(sd))
 		return;
+
+	// @noask [LuzZza]
+	if(t_sd) {
+	 	if (t_sd->state.noask) {
+			clif_noask_sub(sd, t_sd, 0);
+			return;
+		}
+		if(clif_cant_act(t_sd))
+			return;
 	}
 
 	if(battle_config.basic_skill_check == 0 || pc_checkskill(sd,NV_BASIC) >= 1){

+ 1 - 1
src/map/pc.c

@@ -1455,7 +1455,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
 		break;
 	case SP_ASPD:	//Raw increase
 		if(sd->state.lr_flag != 2)
-			status->adelay -= val*10;
+			status->amotion -= val*10;
 		break;
 	case SP_ASPD_RATE:	//Non stackable increase
 		if(sd->state.lr_flag != 2 && status->aspd_rate > 1000-val*10)