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)
This commit is contained in:
Playtester 2016-03-21 22:40:20 +01:00
parent 787f41cb0b
commit 0bd337d9ad
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}