summaryrefslogtreecommitdiff
path: root/src/map/npc.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/npc.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/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index b9bc28eaa..92285118d 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -3460,6 +3460,8 @@ const char* npc_parse_mapflag(char* w1, char* w2, char* w3, char* w4, const char
map[m].flag.chsysnolocalaj = state;
} else if ( !strcmpi(w3,"invincible_time_inc") ) {
map[m].invincible_time_inc = (state) ? atoi(w4) : 0;
+ } else if ( !strcmpi(w3,"noknockback") ) {
+ map[m].flag.noknockback = state;
} else
ShowError("npc_parse_mapflag: unrecognized mapflag '%s' (file '%s', line '%d').\n", w3, filepath, strline(buffer,start-buffer));