Page 1 of 1

callbackOnDealDamage Question

Posted: Thu Feb 04, 2016 2:51 pm
by Micbran
So, the wiki cites callbackOnDealDamage as working like this:

Code: Select all

callbackOnDealDamage(val, self, dead, death_note)
val(damage dealt)
My question is: does the val value only contain the float of the damage dealt or does it also contain other info such as the damage type? I'm trying to make an ability similar to natural acid/corrosive nature, so I need to know what dam type the damage is.

Re: callbackOnDealDamage Question

Posted: Thu Feb 04, 2016 4:48 pm
by darkgod
Damage type is actually in "death_note" and may or may not be present (but 99.999% times it is) (yeah I know ..)
Damage value is just the number yeah

Re: callbackOnDealDamage Question

Posted: Thu Feb 04, 2016 5:33 pm
by Micbran
Well, I'll take my chances. How is it stored?