public SpellUsage( string name, Spell.SpellBase spell, DamageType damageType, Func <bool> preCondition, Func <AIHeroClient, bool> heroCondition, Func <Obj_AI_Minion, bool> minionCondition, HitChance hitChance, bool checkTarget) { // Initialize properties Name = name ?? "Use " + spell.Slot; Spell = spell; DamageType = damageType; PreCondition = preCondition; HeroCondition = heroCondition; MinionCondition = minionCondition; HitChance = hitChance; CheckTarget = checkTarget; Type = SpellTypeDictionary[spell.GetType()]; }