public static float GetSpellDamage(this AIHeroClient source, Obj_AI_Base target, SpellSlot slot, SpellStages stage = SpellStages.Default) { if (source == null || target == null) { return(0f); } Damage.DamageSourceBase damageSpell; return(DamageLibraryManager.TryGetStage(source.Hero, slot, stage, out damageSpell) ? damageSpell.GetDamage(source, target) : 0); }
public static DamageLibraryManager.ChampionDamageDatabase GetChampionDamageDatabase(Champion source) { DamageLibraryManager.ChampionDamageDatabase db; return(DamageLibraryManager.TryGetChampion(source, out db) ? db : new DamageLibraryManager.ChampionDamageDatabase()); }
public static DamageLibraryManager.SpellDamageDatabase GetSpellDamageDatabase(Champion source, SpellSlot slot) { DamageLibraryManager.SpellDamageDatabase db; return(DamageLibraryManager.TryGetSlot(source, slot, out db) ? db : new DamageLibraryManager.SpellDamageDatabase()); }
internal static void Initialize() { DamageLibraryManager.Initialize(); }