summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-02 20:45:20 -0300
committershennetsind <ind@henn.et>2013-04-02 20:45:20 -0300
commit80e90568f0e20766ae4b753395d968bd7a1764f9 (patch)
tree737d35ca217b88c792ad30bef81196437806c916 /src/map/skill.c
parent98b26ebbe6b4df336cfccc38821b7a52d5980d01 (diff)
downloadhercules-80e90568f0e20766ae4b753395d968bd7a1764f9.tar.gz
hercules-80e90568f0e20766ae4b753395d968bd7a1764f9.tar.bz2
hercules-80e90568f0e20766ae4b753395d968bd7a1764f9.tar.xz
hercules-80e90568f0e20766ae4b753395d968bd7a1764f9.zip
Introducing New/Official Mapflag: noknockback
Used officially in gvg and battleground maps (implemented under their respective zones) Special Thanks to Muad_Dib! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ca3b28656..d686bef7f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2049,8 +2049,8 @@ int skill_blown(struct block_list* src, struct block_list* target, int count, in
nullpo_ret(src);
- if (src != target && (map_flag_gvg(target->m) || map[target->m].flag.battleground))
- return 0; //No knocking back in WoE
+ if (src != target && map[src->m].flag.noknockback)
+ return 0; //No knocking
if (count == 0)
return 0; //Actual knockback distance is 0.