From 544e0c0ecdf3f4d0c875e19588fbdf848ffdac99 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 31 Oct 2006 16:04:06 +0000 Subject: - When Kaizel (or super novice rebirth skill) triggers, you get debuffed now. - Modified the player_cloak_check_type and monster_cloak_check_type settings. 1 makes it check for walls, 2 makes cloaking NOT end on normal attacks, and 4 makes cloaking NOT end when using skills. The default setting for players is still 1, but for mobs the default has been changed to 4. - Non-players can now use all skills while hidden. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9109 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 9442adddf..2033cddbf 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1594,15 +1594,15 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage) { int char_id = 0, flag = 0; + if (damage > 0) //Store total damage... + md->tdmg+=damage; + if(md->guardian_data && md->guardian_data->number < MAX_GUARDIANS) // guardian hp update [Valaris] (updated by [Skotlex]) md->guardian_data->castle->guardian[md->guardian_data->number].hp = md->status.hp; if (battle_config.show_mob_info&3) clif_charnameack (0, &md->bl); - if (damage > 0) //Store total damage... - md->tdmg+=damage; - if (!src) return; -- cgit v1.2.3-70-g09d2