From 403d1aceaeb74d5994f0390f61cb31b13923168f Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 6 Nov 2006 19:07:53 +0000 Subject: - Corrected Kaupe so it doesn't ends on the first part of Soul Destroyer. - Applied some cleaning to the way Tatami Gaeshi knocks back. - Cleaned up the way mobskill_use checks for the correct event. It should fix unlimited mob-skill-casting issues. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9154 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index f49744679..bf1bc6998 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1906,6 +1906,10 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds if(src == bl) type = 4; else flag|=SD_ANIMATION; } + if(skillid == NJ_TATAMIGAESHI) { + dsrc = src; //For correct knockback. + flag|=SD_ANIMATION; + } if(sd) { int flag = 0; //Used to signal if this skill can be combo'ed later on. @@ -2066,7 +2070,7 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds //Only knockback if it's still alive, otherwise a "ghost" is left behind. [Skotlex] if (dmg.blewcount > 0 && !status_isdead(bl)) - skill_blown(skillid==NJ_TATAMIGAESHI?src:dsrc,bl,dmg.blewcount); + skill_blown(dsrc,bl,dmg.blewcount); //Delayed damage must be dealt after the knockback (it needs to know actual position of target) if (dmg.amotion) -- cgit v1.2.3-70-g09d2