From 455fad7b177bdcf242ab7e5c0c04d2045deb6873 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 29 Jan 2007 22:08:09 +0000 Subject: - Fixed compiltation error ~.~ I was sure I compiled before the previous commit... - Corrected a null pointer error when a non-player uses amplify magic power. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9743 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 7259fa6c0..5ac920fe6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6245,7 +6245,7 @@ int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int s } if (sc && sc->data[SC_MAGICPOWER].timer != -1) - status_change_end(&sd->bl,SC_MAGICPOWER,-1); + status_change_end(src,SC_MAGICPOWER,-1); if (sd && !(flag&1) && sd->state.arrow_atk) //Consume arrow if a ground skill was not invoked. [Skotlex] battle_consume_ammo(sd, skillid, skilllv); @@ -7814,16 +7814,6 @@ static int skill_check_condition_mob_master_sub (struct block_list *bl, va_list return 1; } -static int skill_check_condition_hermod_sub(struct block_list *bl,va_list ap) -{ - struct npc_data *nd; - nd=(struct npc_data*)bl; - - if (nd->bl.subtype == WARP) - return 1; - return 0; -} - /*========================================== * Determines if a given skill should be made to consume ammo * when used by the player. [Skotlex] -- cgit v1.2.3-60-g2f50