summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-02 16:17:10 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-02 16:17:10 +0000
commitf5b3e703263cff3e3b49006487b950e063d39be1 (patch)
tree0af2f0d52de0e7c3266347c2ddd1fd51554fb3b8
parent24d07d95cdf597b847cf9643305152406e45231d (diff)
downloadhercules-f5b3e703263cff3e3b49006487b950e063d39be1.tar.gz
hercules-f5b3e703263cff3e3b49006487b950e063d39be1.tar.bz2
hercules-f5b3e703263cff3e3b49006487b950e063d39be1.tar.xz
hercules-f5b3e703263cff3e3b49006487b950e063d39be1.zip
* Updated Tiger Knucke Fist's 'fixed state' effect
* Corrected an error, sorry ^^; git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1381 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-SVN.txt1
-rw-r--r--src/map/skill.c16
2 files changed, 11 insertions, 6 deletions
diff --git a/Changelog-SVN.txt b/Changelog-SVN.txt
index 22535a8ed..9ef407649 100644
--- a/Changelog-SVN.txt
+++ b/Changelog-SVN.txt
@@ -1,6 +1,7 @@
Date Added
04/02
+ * Updated Tiger Knucke Fist's 'fixed state' effect [celest]
* Allowed people to enable/disable using the online column via
'register_users_online' in the login_athena.conf [Codemaster]
* Added the 3 baby skills WE_BABY, CALLBABY and CALLPARENT [celest]
diff --git a/src/map/skill.c b/src/map/skill.c
index a0047776a..63e588eea 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -959,9 +959,13 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
// -- moonsoul (stun ability of new champion skill tigerfist)
//
case CH_TIGERFIST:
- if( rand()%100 < (10 + skilllv*10)*sc_def_vit/100 ) {
+ if (rand()%100 < (10 + skilllv*10)*sc_def_vit/100) {
int sec = skill_get_time2 (skillid,skilllv) - status_get_agi(bl)/10;
- status_change_start(bl,SC_STAN,skilllv,0,0,0,sec,0);
+ if (dstsd) {
+ dstsd->canmove_tick += sec;
+ dstsd->canact_tick += sec;
+ } else if (dstmd)
+ dstmd->canmove_tick += sec;
}
break;
@@ -6893,15 +6897,15 @@ int skill_use_id (struct map_session_data *sd, int target_id, int skill_num, int
nullpo_retr(0, sd);
- if(sd->bl.m != bl->m || pc_isdead(sd))
- return 0;
- if(skillnotok(skill_num, sd)) // [MouseJstr]
- return 0;
if ((bl = map_id2bl(target_id)) == NULL)
return 0;
if (bl->type == BL_PC) {
nullpo_retr(0, tsd = (struct map_session_data*)bl);
}
+ if(sd->bl.m != bl->m || pc_isdead(sd))
+ return 0;
+ if(skillnotok(skill_num, sd)) // [MouseJstr]
+ return 0;
if (tsd && skill_num == ALL_RESURRECTION && !pc_isdead(tsd))
return 0;