summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
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)