From 92249d9f8e219916670589ba6c5f9fce47808ed8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 20 Apr 2012 18:05:14 +0000 Subject: Initial support for Genetic, Sorcerer and Elemental Summons. Special Thanks to 3CeAM for the base. Notice this revision onwards requires you to update your char sql table and add the elemental sql table (check sql-files/upgrade_svn15885_log.sql) If you step by any bugs, let us know at http://rathena.org/board/tracker/ Thank you very much. ARRIBA ARRIBA. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15885 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 95b357e4f..ee5bda342 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -23,6 +23,7 @@ #include "mob.h" #include "homunculus.h" #include "mercenary.h" +#include "elemental.h" #include "guild.h" #include "itemdb.h" #include "skill.h" @@ -1896,6 +1897,15 @@ void mob_log_damage(struct mob_data *md, struct block_list *src, int damage) md->attacked_id = src->id; break; } + case BL_ELEM: + { + struct elemental_data *ele = (TBL_ELEM*)src; + if( ele->master ) + char_id = ele->master->status.char_id; + if( damage ) + md->attacked_id = src->id; + break; + } default: //For all unhandled types. md->attacked_id = src->id; } -- cgit v1.2.3-60-g2f50