[ad_1]
The error is in line 400. You are not returning anything there, which means you are returning None which cannot be unwrapped into spell, magic_dmg.
2
[ad_2]
solved How do I resolve this python error: “TypeError: ‘NoneType’ object is not iterable”? [duplicate]