summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-09 03:43:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-09 03:43:46 +0000
commite1d84a18ec61d7132505d9ece70cc1f0adac675e (patch)
tree106cdff4e7c02898e51f8f5bdf393f8d3c5e1276 /src/map/skill.c
parent67785396c1d2a3740404bd993f74dcaad87304ab (diff)
downloadhercules-e1d84a18ec61d7132505d9ece70cc1f0adac675e.tar.gz
hercules-e1d84a18ec61d7132505d9ece70cc1f0adac675e.tar.bz2
hercules-e1d84a18ec61d7132505d9ece70cc1f0adac675e.tar.xz
hercules-e1d84a18ec61d7132505d9ece70cc1f0adac675e.zip
- Moved damage logging to mob_log_damage, now non-damage targetted (or splash) skills also get logged into the monster's 'damage history' which affects the exp-bonus per attacker setting.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10966 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 431278123..91757aca1 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5565,8 +5565,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
return 1;
}
- if (dstmd) //Mob skill event for no damage skills (damage ones are handled in battle_calc_damage) [Skotlex]
+ if (dstmd) { //Mob skill event for no damage skills (damage ones are handled in battle_calc_damage) [Skotlex]
+ mob_log_damage(dstmd, src, 0); //Log interaction (counts as 'attacker' for the exp bonus)
mobskill_event(dstmd, src, tick, MSC_SKILLUSED|(skillid<<16));
+ }
if (sd && !(flag&1) && sd->state.arrow_atk) //Consume arrow on last invocation to this skill.
battle_consume_ammo(sd, skillid, skilllv);