From a8ed5bce482007aa96ff5f6674d6dfe6bbfaa487 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 4 May 2006 15:18:30 +0000 Subject: - Stun time for using ES magic on non-mobs reduced to 0.5 secs. - Eska is now usable on bosses. - Swoo will stun you if attempted on an already 'swooned' enemy. - clif_skill_failed will print out a debug line with the skill_id (since the current null_po does not helps at all to fix it) - Applied TheUltraMage's suggested fixes to the grfio module. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6467 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index d61ce3682..075f0fbfc 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4338,8 +4338,11 @@ int clif_skill_fail(struct map_session_data *sd,int skill_id,int type,int btype) { int fd; - nullpo_retr(0, sd); - + if (!sd) { //Since this is the most common nullpo.... + ShowDebug("clif_skill_fail: Error, received NULL sd for skill %d\n", skill_id); + return 0; + } + fd=sd->fd; // reset all variables [celest] -- cgit v1.2.3-70-g09d2