summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-12 14:28:39 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-12 14:28:39 +0000
commit55ba4be17e2abefa0fdaa25c387bf30bdaf49332 (patch)
tree3159eee66c510c377a365f355b61ae91a5e74aaa /src/map/skill.c
parent6e6cca7898f07d1707bdfa4f9d6b70b78ca3ec1e (diff)
downloadhercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.tar.gz
hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.tar.bz2
hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.tar.xz
hercules-55ba4be17e2abefa0fdaa25c387bf30bdaf49332.zip
- Added debug command @displayskill. Should be used only by people searching for new skill IDs.
- Now the bonus bAtkEle will be transferred directly to the weapon when the script is in the ammunition, and you are wielding a weapon that consumes ammo per atttack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10232 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ce6f81aaf..d7334a079 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6770,9 +6770,8 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid,
{
int element[5]={ELE_WIND,ELE_DARK,ELE_POISON,ELE_WATER,ELE_FIRE};
- if (sd)
- val1=sd->arrow_ele;
- else
+ val1 = status->rhw.ele;
+ if (!val1)
val1=element[rand()%5];
switch (val1)