From dea1baafdf08de3957a4f48d0b5ec1d0a5677742 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 4 Sep 2006 16:47:52 +0000 Subject: - Ordered up entries in skill_unit_db - SC_REFLECTSHIELD will now be passed to devoted characters at cast-time. - Added a check to make a mob's level 1 if the read level from the db is less than it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8615 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index f73513ca2..9e39d814b 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4911,6 +4911,16 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val break; case SC_REFLECTSHIELD: val2=10+val1*3; //% Dmg reflected + if (sd) + { //Pass it to devoted chars. + struct map_session_data *tsd; + int i; + for (i = 0; i < 5; i++) + { //Pass the status to the other affected chars. [Skotlex] + if (sd->devotion[i] && (tsd = map_id2sd(sd->devotion[i]))) + status_change_start(&tsd->bl,SC_AUTOGUARD,10000,val1,val2,0,0,tick,1); + } + } break; case SC_STRIPWEAPON: if (bl->type != BL_PC) //Watk reduction -- cgit v1.2.3-60-g2f50