Prechádzať zdrojové kódy

Monster logging/EXP, Knuckle Arrow damage
* Removed the self-logging aspect of monsters for non-damage skills (follow-up to a6f73a6)
-- Officially, these skills don't log and don't increase exp
* Fixed a wrong reference that caused Knuckle Arrow damage to depend on own weight rather than enemy weight (see #1071)

Playtester 9 rokov pred
rodič
commit
0bd337d9ad
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      src/map/battle.c
  2. 1 1
      src/map/mob.c

+ 1 - 1
src/map/battle.c

@@ -3324,7 +3324,7 @@ static struct Damage battle_calc_multi_attack(struct Damage wd, struct block_lis
 static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv)
 {
 	struct map_session_data *sd = BL_CAST(BL_PC, src);
-	struct map_session_data *tsd = BL_CAST(BL_PC, src);
+	struct map_session_data *tsd = BL_CAST(BL_PC, target);
 	struct status_change *sc = status_get_sc(src);
 	struct status_change *tsc = status_get_sc(target);
 	struct status_data *sstatus = status_get_status_data(src);

+ 1 - 1
src/map/mob.c

@@ -2155,7 +2155,7 @@ void mob_log_damage(struct mob_data *md, struct block_list *src, int damage)
 	}
 
 	//Self damage increases tap bonus
-	if (!char_id && src->id == md->bl.id) {
+	if (!char_id && src->id == md->bl.id && damage > 0) {
 		char_id = src->id;
 		flag = MDLF_SELF;
 	}