summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 16:44:19 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 16:44:19 +0000
commit9f301a592ce1c2646bbda3404e45e4276b072fcd (patch)
treeafab43a917fd76edc4a14d86ed61b5d193cc332e /src/map/skill.c
parentc3c4b55d56bc72a77df54990832029a3280a72d2 (diff)
downloadhercules-9f301a592ce1c2646bbda3404e45e4276b072fcd.tar.gz
hercules-9f301a592ce1c2646bbda3404e45e4276b072fcd.tar.bz2
hercules-9f301a592ce1c2646bbda3404e45e4276b072fcd.tar.xz
hercules-9f301a592ce1c2646bbda3404e45e4276b072fcd.zip
- Removed the NPC/Dance/Song inf2 check of AbraCadabra. whether a skill can come out or not is entirely decided by the abra db file now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7515 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index cd67cceb2..dacb57a75 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3338,7 +3338,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
do {
abra_skillid = rand() % MAX_SKILL_ABRA_DB;
if (
- skill_get_inf2(abra_skillid)&(INF2_NPC_SKILL|INF2_SONG_DANCE|INF2_ENSEMBLE_SKILL) || //NPC/Song/Dance skills are out
+//Unneeded check, use the "per" field to know if the skill is valid.
+// skill_get_inf2(abra_skillid)&(INF2_NPC_SKILL|INF2_SONG_DANCE|INF2_ENSEMBLE_SKILL) || //NPC/Song/Dance skills are out
!skill_get_inf(abra_skillid) || //Passive skills cannot be casted
skill_abra_db[abra_skillid].req_lv > skilllv || //Required lv for it to appear
rand()%10000 >= skill_abra_db[abra_skillid].per