summaryrefslogtreecommitdiff
path: root/src/map/skill.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-23 21:55:18 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-23 21:55:18 +0000
commit93109355b4f0b7dcbf9aa827716590df9cd3f9cd (patch)
tree9b670782315d89cc05b2584b8c439010078eb50d /src/map/skill.h
parenteb0a137041d3a5ee6385762b8374e98b3867d5a0 (diff)
downloadhercules-93109355b4f0b7dcbf9aa827716590df9cd3f9cd.tar.gz
hercules-93109355b4f0b7dcbf9aa827716590df9cd3f9cd.tar.bz2
hercules-93109355b4f0b7dcbf9aa827716590df9cd3f9cd.tar.xz
hercules-93109355b4f0b7dcbf9aa827716590df9cd3f9cd.zip
- The NK value of the skill_db has been made a hexadecimal value, and expanded to include more information about a skill's damage properties: 0x8 - ignore caster's cards, 0x10 ignore element adjustments, 0x20 ignore target's defense, 0x40 ignore target's flee.
- Magic attacks always ignore flee, and misc attacks always ignore defense. - Autoguard will no longer work on skills that don't take in card adjustments - utsusemi & bunsinjyutsu no longer work on skills that don't take in card adjustments. - Corrected damage of the NPC elemental attack skills, Blood Drain and Energy Drain git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9906 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.h')
-rw-r--r--src/map/skill.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/map/skill.h b/src/map/skill.h
index cab8039c0..dc1bcbe23 100644
--- a/src/map/skill.h
+++ b/src/map/skill.h
@@ -20,11 +20,17 @@
#define INF_SUPPORT_SKILL 16
#define INF_TARGET_TRAP 32
-//Constants to identify a skill's nk value.
-//The NK value applies only to non INF_GROUND_SKILL skills.
-#define NK_NO_DAMAGE 0x1
-#define NK_SPLASH (0x2|0x4) // 0x4 = splash & split
-#define NK_SPLASHSPLIT 0x4
+//Constants to identify a skill's nk value (damage properties)
+//The NK value applies only to non INF_GROUND_SKILL skills
+//when determining skill castend function to invoke.
+#define NK_NO_DAMAGE 0x01
+#define NK_SPLASH (0x02|0x04) // 0x4 = splash & split
+#define NK_SPLASHSPLIT 0x04
+#define NK_NO_CARDFIX 0x08
+#define NK_NO_ELEFIX 0x10
+#define NK_IGNORE_DEF 0x20
+#define NK_IGNORE_FLEE 0x40
+
//A skill with 3 would be no damage + splash: area of effect.
//Constants to identify a skill's inf2 value.
#define INF2_QUEST_SKILL 1