diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-07 20:56:28 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-07 20:56:28 +0000 |
commit | f0fef787616b240f4d4dece0973ec20b3464a0e7 (patch) | |
tree | cf8ee0ca6d5890b35f07ac0421ae93153695f728 /src/map/skill.c | |
parent | 4e7bd03012431ebb2f308e3667db41a883b1041e (diff) | |
download | hercules-f0fef787616b240f4d4dece0973ec20b3464a0e7.tar.gz hercules-f0fef787616b240f4d4dece0973ec20b3464a0e7.tar.bz2 hercules-f0fef787616b240f4d4dece0973ec20b3464a0e7.tar.xz hercules-f0fef787616b240f4d4dece0973ec20b3464a0e7.zip |
- Applied FlavioJs's patch which enables colored console output for Windows systems. It also includes a config setting called "stdout_with_ansisequence" with which you can turn off the color codes (in case you are logging all output)
- Added error reporting when the max number of ground unit cells has been reached (this may be the reason why sometimes it fails to recognize when you step out of a song/dance/encore)
- Added passing the Endure effect to other devoted people. Note that the "hit count" is individual for each character, and only when it ends on the Crusader himself will that force it to end on everyone else. It also will not transfer on gvg grounds, but it does transfer in pvp.
- Fixed Reflect-Shield triggering Auto-Guard instead on devoted chars.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9168 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index ea9f44c4f..02c5e1e03 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -10087,8 +10087,13 @@ int skill_unit_move_sub (struct block_list *bl, va_list ap) } else { - if (flag&2 && skill_unit_index < 7) //Store this unit id. - skill_unit_temp[skill_unit_index++] = skill_id; + if (flag&2) { //Store this unit id. + if (skill_unit_index < 7) + skill_unit_temp[skill_unit_index++] = skill_id; + else if (battle_config.error_log) + ShowError("skill_unit_move_sub: Reached limit of unit objects per cell!\n"); + } + } if (flag&4) skill_unit_onleft(skill_id,target,tick); @@ -10112,8 +10117,12 @@ int skill_unit_move_sub (struct block_list *bl, va_list ap) else { result = skill_unit_onout(unit,target,tick); - if (flag&2 && skill_unit_index < 7 && result) //Store this unit id. - skill_unit_temp[skill_unit_index++] = result; + if (flag&2 && result) { //Store this unit id. + if (skill_unit_index < 7) + skill_unit_temp[skill_unit_index++] = result; + else if (battle_config.error_log) + ShowError("skill_unit_move_sub: Reached limit of unit objects per cell!\n"); + } } //TODO: Normally, this is dangerous since the unit and group could be freed |