summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-01 15:50:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-01 17:23:19 +0300
commit0d732b8e7959bc50b29874d816981d12859fb811 (patch)
tree7323d0a5266ef7182b54833392b0f65d47b3c94b /src
parentfb398fe6dcc8ba797e133df3db3dcdfa1df9042b (diff)
downloadplugin-0d732b8e7959bc50b29874d816981d12859fb811.tar.gz
plugin-0d732b8e7959bc50b29874d816981d12859fb811.tar.bz2
plugin-0d732b8e7959bc50b29874d816981d12859fb811.tar.xz
plugin-0d732b8e7959bc50b29874d816981d12859fb811.zip
Add effects enum. Use provoke effect on provoked targets in EVOL_MASSPROVOKE skill.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/emap/effects.h12
-rw-r--r--src/emap/skill_ground.c2
3 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 76f6140..a452554 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -42,6 +42,7 @@ MAP_SRC = emap/atcommand.c \
emap/craft.h \
emap/craftconf.c \
emap/craftconf.h \
+ emap/effects.h \
emap/hashtable.c \
emap/hashtable.h \
emap/horse.c \
diff --git a/src/emap/effects.h b/src/emap/effects.h
new file mode 100644
index 0000000..5d03b5b
--- /dev/null
+++ b/src/emap/effects.h
@@ -0,0 +1,12 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 - 2015 Evol developers
+
+#ifndef EVOL_MAP_EFFECTS
+#define EVOL_MAP_EFFECTS
+
+enum
+{
+ EFFECT_PROVOKE = 23
+};
+
+#endif // EVOL_MAP_EFFECTS
diff --git a/src/emap/skill_ground.c b/src/emap/skill_ground.c
index f557009..7a4ebc2 100644
--- a/src/emap/skill_ground.c
+++ b/src/emap/skill_ground.c
@@ -12,6 +12,7 @@
#include "map/mob.h"
#include "map/skill.h"
+#include "emap/effects.h"
#include "emap/skill_ground.h"
static int eskill_massprovoke_sub(struct block_list *bl,
@@ -41,6 +42,7 @@ static int eskill_massprovoke_sub(struct block_list *bl,
{
dstmd->state.provoke_flag = src->id;
mob->target(dstmd, src, dist);
+ clif->misceffect(bl, EFFECT_PROVOKE);
(*cnt) ++;
}