From 1e53c03f251799e0ecd253140e298856b306a7d0 Mon Sep 17 00:00:00 2001 From: Lupus Date: Tue, 22 Mar 2005 08:42:16 +0000 Subject: * Added Rafflesia into Dead Branch monsters list, removen all MVPs from there DBs never supposed to call MVPs!!! Only Sages Hocus Pocus could make a MVP from Alchemyst's Floras. (eA Hocus implementation doesn't support it yet) fixed Cannibalize skill according to http://guide.ragnarok.co.kr/jobalcskill.asp git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1263 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'src/map') diff --git a/src/map/skill.c b/src/map/skill.c index 5310618b3..b233f9c78 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4921,21 +4921,32 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil break; case AM_CANNIBALIZE: // バイオプラント if(sd){ - int mx,my,id=0; + int mx,my,amount=6-skilllv,id=0; int summons[5] = { 1020, 1068, 1118, 1500, 1368 }; struct mob_data *md; - mx = x;// + (rand()%10 - 5); - my = y;// + (rand()%10 - 5); + for (i=0; imaster_id=sd->bl.id; - md->hp=2210+skilllv*200; - md->state.special_mob_ai=1; - md->deletetimer=add_timer(gettick()+skill_get_time(skillid,skilllv),mob_timer_delete,id,0); + if( (md=(struct mob_data *)map_id2bl(id)) !=NULL ){ + md->master_id=sd->bl.id; + //md->hp=2210+skilllv*200; commented out, we use REAL hp of the mobs [Lupus] + md->state.special_mob_ai=1; + md->deletetimer=add_timer(gettick()+skill_get_time(skillid,skilllv),mob_timer_delete,id,0); + } } + //block skill + //i can't check if the summoned mobs are dead.. to be able summon next... so i just disable skill [Lupus] + pc_blockskill_start (sd, AM_CANNIBALIZE, skill_get_time(skillid,skilllv)); clif_skill_poseffect(src,skillid,skilllv,x,y,tick); } break; -- cgit v1.2.3-70-g09d2