Appearance
Damage
Using Damage SDK
WARNING
Before using the SDK you need to instantiate it using sdk_init::damage() - example provided on this page
WARNING
This part of the SDK is prone to change and not completely supported yet
Damage Enums
cpp
enum class damage_type
{
physical = 0,
magical,
};enum class damage_type
{
physical = 0,
magical,
};Getting Spell Damage
Spells that do not scale on target
float sdk::damage->get_spell_damage( game_object* hero, int spell_slot )
Spells that scale on target
float sdk::damage->get_spell_damage( game_object* source, game_object* target, int spell_slot )
Getting Auto Attack Damage
float sdk::damage->get_aa_damage( game_object* source, game_object* target, bool next_attack = false )
Calculating Damage
float sdk::damage->calc_damage( damage_type type, game_object* source, game_object* target, float damage )