summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-06 19:07:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-06 19:07:53 +0000
commit403d1aceaeb74d5994f0390f61cb31b13923168f (patch)
tree7ae86ce62877788177c0c23ee3f2a357de72dfb9 /src/map/skill.c
parentbb0e0bcc5d4da8331f6fb33c879b2d757855722a (diff)
downloadhercules-403d1aceaeb74d5994f0390f61cb31b13923168f.tar.gz
hercules-403d1aceaeb74d5994f0390f61cb31b13923168f.tar.bz2
hercules-403d1aceaeb74d5994f0390f61cb31b13923168f.tar.xz
hercules-403d1aceaeb74d5994f0390f61cb31b13923168f.zip
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 5 insertions, 1 deletions
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)