summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 3e53dfe..6de1af0 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -3089,8 +3089,9 @@ BUILDIN(aggravate)
}
// Like heal() but works against anything (casts battle funcs)
-// types: 1- physical; 2- magic; 4 - misc, default
-// harm(guid, rawdmg, type)
+// types: 1- physical; 2- magic.
+// Any other number: misc (no calculation)
+// harm(guid, raw_damage, type)
BUILDIN(harm)
{
struct block_list *bl;
@@ -3129,10 +3130,8 @@ BUILDIN(harm)
switch(attack_type) {
case BF_WEAPON: d = battle->calc_weapon_attack(src, bl, 0,0,0); break;
case BF_MAGIC: d = battle->calc_magic_attack(src, bl, 0,0,0); break;
- case BF_MISC: d.damage=d.damage2=dmg; d.flag=BF_MISC; break;
default:
- ShowError("harm: unknown attack type! %d\n",attack_type);
- memset(&d,0,sizeof(d));
+ d.damage=d.damage2=dmg;
break;
}