diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-03 19:47:10 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-03 19:47:10 +0000 |
commit | 7a6dc99cb063cfa34618e3a1e9c73716b3612fb6 (patch) | |
tree | 76c3e260f7f8aaa960067edbf6d87dab7cc80942 /src/map/skill.c | |
parent | 0eb4ba12344652dd948c3aece8264865ffa857e5 (diff) | |
download | hercules-7a6dc99cb063cfa34618e3a1e9c73716b3612fb6.tar.gz hercules-7a6dc99cb063cfa34618e3a1e9c73716b3612fb6.tar.bz2 hercules-7a6dc99cb063cfa34618e3a1e9c73716b3612fb6.tar.xz hercules-7a6dc99cb063cfa34618e3a1e9c73716b3612fb6.zip |
- Kaahi now triggers every 500ms rather than on every hit (but it only heals if in those 500ms an attack that would previously trigger Kaahi has taken effect). In other words, it works just like before, except damage gets "buffered" into 500ms slots.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6463 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 10b355d3f..25e92e15d 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1424,19 +1424,8 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list * switch(skillid){
case 0: //Normal Attack
- if(tsc && tsc->data[SC_KAAHI].timer != -1) {
- if (dstsd && dstsd->status.sp < tsc->data[SC_KAAHI].val3)
- ; //Not enough SP to cast
- else {
- int hp = status_get_max_hp(bl) - status_get_hp(bl);
- if (hp > tsc->data[SC_KAAHI].val2)
- hp = tsc->data[SC_KAAHI].val2;
- if (hp) {
- battle_heal(bl, bl, hp, -tsc->data[SC_KAAHI].val3, 1);
- clif_skill_nodamage(NULL,bl,AL_HEAL,hp,1);
- }
- }
- }
+ if(tsc && tsc->data[SC_KAAHI].timer != -1)
+ tsc->data[SC_KAAHI].val4++; //Activate heal.
break;
case MO_EXTREMITYFIST: /* ˆ¢?C—…”e™€Œ? */
//ˆ¢?C—…‚ðŽg‚¤‚Æ5•ªŠÔŽ©‘R‰ñ•œ‚µ‚È‚¢‚悤‚É‚È‚é
|