summaryrefslogtreecommitdiff
path: root/src/emap/skill.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-05 14:53:33 +0000
committerAndrei Karas <akaras@inbox.ru>2016-07-05 14:53:33 +0000
commit53dcb71142e15f1f21cf626220de8039b7be7dd4 (patch)
tree86ea390b7de8e60251e67fe18bef879fec468e05 /src/emap/skill.c
parent7f6c805f25d34ba80ca86e53216e1d588ab1ea75 (diff)
parentff678a2bc1f17d5f7faa8744c2c628b1f2b96a1e (diff)
downloadevol-hercules-53dcb71142e15f1f21cf626220de8039b7be7dd4.tar.gz
evol-hercules-53dcb71142e15f1f21cf626220de8039b7be7dd4.tar.bz2
evol-hercules-53dcb71142e15f1f21cf626220de8039b7be7dd4.tar.xz
evol-hercules-53dcb71142e15f1f21cf626220de8039b7be7dd4.zip
Merge branch 'tmw-skills' into 'master'
add skill "physical protection" (tmw betsanc) Implementing some of TMW skills (and magic) on hercules skill system. See merge request !2
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)),