- Updated skill_delayfix to return 0 for mobs since they have no skill delay other than the one specified in mob_skill_db

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6699 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-05-22 19:56:26 +00:00
parent 8e1cd35c5a
commit 1a06a9a6f4
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,8 @@ 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. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/22 2006/05/22
* Updated skill_delayfix to return 0 for mobs since they have no skill
delay other than the one specified in mob_skill_db [Skotlex]
* Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to * Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to
Vayu for pointing it out. [Skotlex] Vayu for pointing it out. [Skotlex]
* status_get_sc_tick will now use directly Stun's formula rather than * status_get_sc_tick will now use directly Stun's formula rather than

View File

@ -8309,6 +8309,9 @@ int skill_delayfix(struct block_list *bl, int skill_id, int skill_lv)
nullpo_retr(0, bl); nullpo_retr(0, bl);
if (bl->type == BL_MOB)
return 0; //Mobs have no delay other than the skill-specific delay in their skill db. [Skotlex]
// instant cast attack skills depend on aspd as delay [celest] // instant cast attack skills depend on aspd as delay [celest]
if (time == 0) { if (time == 0) {
if (skill_get_type(skill_id) == BF_WEAPON && !(skill_get_nk(skill_id)&NK_NO_DAMAGE)) if (skill_get_type(skill_id) == BF_WEAPON && !(skill_get_nk(skill_id)&NK_NO_DAMAGE))