diasurgical / devilutionX

Diablo build for modern operating systems
Other
8.01k stars 786 forks source link

Optimize StartSpell() #7211

Closed kphoenix137 closed 1 month ago

kphoenix137 commented 2 months ago

isValid can be set to false initially, removing the need for a case for SpellType::Invalid, as if all the previous conditions are not met, isValid will remain false.