def reqAttackType(attack, attackType): if attackType == 'Weapon': val = manager.fromWepTable(attack) value = val['Range'] elif attackType == 'Spell': value = manager.fromSpellTable(attack) return value
def castSpell(spell, target='Self'): spell = manager.fromSpellTable(spell)