From ae38fdb123c207515468e409cd553f1a185c02e0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 14 Sep 2006 16:50:12 +0000 Subject: - Fixed warmth skills draining SP of the target, not the caster. - If val3 for a combo is set, then the combo will no longer delay attack/movement. - When TK_DODGE triggers, it will no longer delay your attack or movement. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8757 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 3 +++ src/map/battle.c | 2 +- src/map/skill.c | 2 +- src/map/status.c | 9 +++++++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 3c2dd5197..8bc0b9b29 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/09/14 + * Fixed warmth skills draining SP of the target, not the caster. [Skotlex] + * When TK_DODGE triggers, it will no longer delay your attack or movement. + [Skotlex] * Estimation /Sense/ whatever will no longer hide the vit bonus to mdef2, as reported by Playtester. [Skotlex] * Updated Summon Flora to summon the max number of possible plants on one diff --git a/src/map/battle.c b/src/map/battle.c index aea5d1444..badf117ed 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -302,7 +302,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i && rand()%100 < 20) { clif_skill_nodamage(bl,bl,TK_DODGE,1,1); if (sc->data[SC_COMBO].timer == -1) - sc_start4(bl, SC_COMBO, 100, TK_JUMPKICK, src->id, 0, 0, 2000); + sc_start4(bl, SC_COMBO, 100, TK_JUMPKICK, src->id, 1, 0, 2000); return 0; } diff --git a/src/map/skill.c b/src/map/skill.c index f974a7f80..51f3286e3 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7069,7 +7069,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns if(bl->type==BL_PC) //Only damage SP [Skotlex] status_zap(bl, 0, 60); - else if(status_charge(bl, 0, 2)) + else if(status_charge(ss, 0, 2)) //Otherwise, Knockback attack. skill_attack(BF_WEAPON,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0); break; diff --git a/src/map/status.c b/src/map/status.c index 5a116e5bf..6f17719a8 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5394,8 +5394,12 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val case SC_COMBO: { + //val1: Skill ID + //val2: When given, target (for autotargetting skills) + //val3: When set, this combo time should NOT delay attack/movement + //val4: Combo time struct unit_data *ud = unit_bl2ud(bl); - switch (val1) { //Val1 contains the skill id + switch (val1) { case TK_STORMKICK: clif_skill_nodamage(bl,bl,TK_READYSTORM,1,1); break; @@ -5409,7 +5413,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val clif_skill_nodamage(bl,bl,TK_READYCOUNTER,1,1); break; } - if (ud) { + if (ud && !val3) + { ud->attackabletime = gettick()+tick; unit_set_walkdelay(bl, gettick(), tick, 1); } -- cgit v1.2.3-70-g09d2