summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-28 11:43:20 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-28 11:43:20 +0000
commit056248cd0eb6614ffdc436be47a54e0aa2f9a559 (patch)
tree63b74edfc336c904540b412a113b6532cc4d0834
parentebe645e4e1ddddfe037c48277b6282297c4c2287 (diff)
downloadhercules-056248cd0eb6614ffdc436be47a54e0aa2f9a559.tar.gz
hercules-056248cd0eb6614ffdc436be47a54e0aa2f9a559.tar.bz2
hercules-056248cd0eb6614ffdc436be47a54e0aa2f9a559.tar.xz
hercules-056248cd0eb6614ffdc436be47a54e0aa2f9a559.zip
Fixed reflected spells bypassing WoE no-knockback restriction, because the code allowed that when cast on self; not anymore (bugreport:231)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11835 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index c4c0245f5..e4d6a67a4 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -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.
2007/11/28
+ * Fixed reflected spells bypassing WoE no-knockback restriction, because
+ the code allowed that when cast on self; not anymore (bugreport:231)
* Reverted the position of the max_hp/max_sp basic setting, modified the
max_hp/max_sp bonuses to use casting in order to work correctly with
negative bonuses. [Skotlex]
diff --git a/src/map/skill.c b/src/map/skill.c
index efb9c6ee9..f31c5941e 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1223,7 +1223,7 @@ int skill_blown(struct block_list* src, struct block_list* target, int count, in
nullpo_retr(0, src);
- if (src != target && map_flag_gvg(target->m))
+ if (map_flag_gvg(target->m))
return 0; //No knocking back in WoE
if (count == 0)
return 0; //Actual knockback distance is 0.