Baneczek
うさちゃん
Hi guys. I need some help, again with creaturescript.
I want to make knight healing for a percentage of damage dealt (something like life steal) but also against creatures.
I tested those two
http://otland.net/threads/creaturescript-vampiric-touch-lifesteal-atk.116496/
and
http://otland.net/threads/life-steal-life-drain-for-x-seconds.117595/
Those work perfectly only against players and i want it to work against creatures too.
f.e. if i hit MONSTER for 100 and it heals me for 10.
Tried remaking it, adding
if isMonster(target)... but it doesn't work.
Would be great if someone could help me.
EDIT: It's TFS 0.3.6
I want to make knight healing for a percentage of damage dealt (something like life steal) but also against creatures.
I tested those two
http://otland.net/threads/creaturescript-vampiric-touch-lifesteal-atk.116496/
and
http://otland.net/threads/life-steal-life-drain-for-x-seconds.117595/
Those work perfectly only against players and i want it to work against creatures too.
f.e. if i hit MONSTER for 100 and it heals me for 10.
Tried remaking it, adding
if isMonster(target)... but it doesn't work.
Would be great if someone could help me.
EDIT: It's TFS 0.3.6