summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-23 16:31:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-23 16:31:16 +0000
commit07e03074151d0361be665c05e140eca8e89295ca (patch)
tree27f45515a8e87d04a470ae4773e3d49279e38f5e /src/map/skill.c
parentbe36c563041ad7131b1b5dc86771d167b355a619 (diff)
downloadhercules-07e03074151d0361be665c05e140eca8e89295ca.tar.gz
hercules-07e03074151d0361be665c05e140eca8e89295ca.tar.bz2
hercules-07e03074151d0361be665c05e140eca8e89295ca.tar.xz
hercules-07e03074151d0361be665c05e140eca8e89295ca.zip
- Modified the way autospells stack to mimic official servers. Cards of the same ID cannot stack, but different cards with the same skill can each trigger indepedently of each other.
- Added battle_config autospell_stacking to enable stacking of cards of same ID. - Moved card-specific battle options to items.conf - Autospells triggered when hit will check the range to the target. - Some cleaning up of status_calc_pc - In status_change_start capped the passed success chance to 100% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5377 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index a36f17368..faedbd39a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1373,6 +1373,9 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
else
tbl = src;
+ if (tbl != src && !battle_check_range(src, tbl, skill_get_range2(src, skillid, skilllv)))
+ continue; //Autoskills DO check for target-src range. [Skotlex]
+
switch (skill_get_casttype(skillid)) {
case CAST_GROUND:
skill_castend_pos2(bl, tbl->x, tbl->y, skillid, skilllv, tick, 0);