diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-20 19:47:02 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-20 19:47:02 +0000 |
commit | 0854fa128b1c5f9a2ece3f4201a916d082e618c9 (patch) | |
tree | a9a425bf24f9600e080ed19d00d21bfd5854f5fd /src/map/skill.c | |
parent | 70c20becdaf7722c6b728263f8c13a29e5a87287 (diff) | |
download | hercules-0854fa128b1c5f9a2ece3f4201a916d082e618c9.tar.gz hercules-0854fa128b1c5f9a2ece3f4201a916d082e618c9.tar.bz2 hercules-0854fa128b1c5f9a2ece3f4201a916d082e618c9.tar.xz hercules-0854fa128b1c5f9a2ece3f4201a916d082e618c9.zip |
* Implemented Brainstorm's and SketchyPhoenix's fixes for Flying side kick.
- Skill will now remove KA-type statuses and not remove stalker's link while preserved.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13098 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index af47b0a87..136a4dfd5 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -782,8 +782,18 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int status_change_end(bl, SC_SPEEDUP0, -1); if (tsc->data[SC_SPEEDUP1] && !tsc->data[SC_SPEEDUP1]->val4) status_change_end(bl, SC_SPEEDUP1, -1); - if (tsc->data[SC_SPIRIT]) + // Stalkers who are preserved will no longer lose their link. + if (tsc->data[SC_SPIRIT] && !(dstsd->class_&MAPID_STALKER && tsc->data[SC_SPIRIT] && tsc->data[SC_PRESERVE])) status_change_end(bl, SC_SPIRIT, -1); + // Updated by Brainstorm to remove 'Ka' status effects and Link granted skills. + if (tsc->data[SC_KAIZEL]) + status_change_end(bl, SC_KAIZEL, -1); + if (tsc->data[SC_KAAHI]) + status_change_end(bl, SC_KAAHI, -1); + if (tsc->data[SC_KAUPE]) + status_change_end(bl, SC_KAUPE, -1); + if (tsc->data[SC_KAITE]) + status_change_end(bl, SC_KAITE, -1); if (tsc->data[SC_ONEHAND]) status_change_end(bl, SC_ONEHAND, -1); if (tsc->data[SC_ADRENALINE2]) |