summaryrefslogtreecommitdiff
path: root/src/emap/skill.c
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2016-07-03 19:55:49 +0300
committerJoseph Botosh <rumly111@gmail.com>2016-07-05 17:36:23 +0300
commitff678a2bc1f17d5f7faa8744c2c628b1f2b96a1e (patch)
tree86ea390b7de8e60251e67fe18bef879fec468e05 /src/emap/skill.c
parent7f6c805f25d34ba80ca86e53216e1d588ab1ea75 (diff)
downloadplugin-ff678a2bc1f17d5f7faa8744c2c628b1f2b96a1e.tar.gz
plugin-ff678a2bc1f17d5f7faa8744c2c628b1f2b96a1e.tar.bz2
plugin-ff678a2bc1f17d5f7faa8744c2c628b1f2b96a1e.tar.xz
plugin-ff678a2bc1f17d5f7faa8744c2c628b1f2b96a1e.zip
add Physical Shield Skill (id 20001)
Diffstat (limited to 'src/emap/skill.c')
-rw-r--r--src/emap/skill.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/emap/skill.c b/src/emap/skill.c
index 97bd93e..e0040b6 100644
--- a/src/emap/skill.c
+++ b/src/emap/skill.c
@@ -21,6 +21,8 @@
#include "emap/skill.h"
#include "emap/skill_const.h"
#include "emap/skill_ground.h"
+#include "emap/skill_targeted.h"
+#include "emap/status.h"
#include "plugins/HPMHooking.h"
@@ -63,6 +65,27 @@ int eskill_check_condition_castend_post(int retVal,
return retVal;
}
+bool eskill_castend_nodamage_id_unknown(struct block_list *src,
+ struct block_list *bl,
+ uint16 *skill_id,
+ uint16 *skill_lv,
+ int64 *tick __attribute__ ((unused)),
+ int *flag __attribute__ ((unused)))
+{
+ switch (*skill_id)
+ {
+ case EVOL_PHYSICAL_SHIELD:
+ eskill_physical_shield(src, bl, *skill_id, *skill_lv);
+ break;
+
+ default:
+ clif->skill_nodamage(src, bl, *skill_id, *skill_lv, 1);
+ break;
+ }
+ map->freeblock_unlock();
+ return true;
+}
+
void eskill_additional_effect_unknown(struct block_list* src __attribute__ ((unused)),
struct block_list *bl __attribute__ ((unused)),
uint16 *skill_id __attribute__ ((unused)),