summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-18 14:50:17 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-18 14:50:17 +0000
commitd2ed6a9218ffe6b2cd1889a12e265809f4573ff4 (patch)
tree9ee40c50f4368c3539eb979f9b5d3581255df898 /src/map/battle.c
parent6713158b3247af09d6bf036028d94baf1e715525 (diff)
downloadhercules-d2ed6a9218ffe6b2cd1889a12e265809f4573ff4.tar.gz
hercules-d2ed6a9218ffe6b2cd1889a12e265809f4573ff4.tar.bz2
hercules-d2ed6a9218ffe6b2cd1889a12e265809f4573ff4.tar.xz
hercules-d2ed6a9218ffe6b2cd1889a12e265809f4573ff4.zip
- Fixed a crash when trying to extend TK's infinite combo feature.
- Corrected Poison React to counter regardless of distance, and to use the skill's 50+5*lv% counter chance (instead of 100%). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7730 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index dee87da15..21e23ee0a 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2944,7 +2944,9 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target,
if (tsc) {
if (tsc->data[SC_POISONREACT].timer != -1 &&
- check_distance_bl(src, target, tstatus->rhw.range+1) &&
+ (rand()%100 < tsc->data[SC_POISONREACT].val3
+ || sstatus->def_ele == ELE_POISON) &&
+// check_distance_bl(src, target, tstatus->rhw.range+1) && Doesn't checks range! o.O;
status_check_skilluse(target, src, TF_POISON, 0)
) { //Poison React
if (sstatus->def_ele == ELE_POISON) {