- Fixed NPC_CRITICALSLASH not being considered as a Critical hit by the code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8105 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-08-03 16:41:35 +00:00
parent 187fb75379
commit fb0b6dcabf
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/03 2006/08/03
* Fixed NPC_CRITICALSLASH not being considered as a Critical hit by the
code. [Skotlex]
* Added RUDE_ATTACKED_COUNT so you can easily adjust how many rude-attacks * Added RUDE_ATTACKED_COUNT so you can easily adjust how many rude-attacks
should happen before a mob uses the rude-attacked skill. Value has been set should happen before a mob uses the rude-attacked skill. Value has been set
to 2 for now. [Skotlex] to 2 for now. [Skotlex]

View File

@ -902,6 +902,10 @@ static struct Damage battle_calc_weapon_attack(
case KN_AUTOCOUNTER: case KN_AUTOCOUNTER:
wd.flag=(wd.flag&~BF_SKILLMASK)|BF_NORMAL; wd.flag=(wd.flag&~BF_SKILLMASK)|BF_NORMAL;
break; break;
case NPC_CRITICALSLASH:
flag.cri = 1; //Always critical skill.
break;
} }
} }