fix(Scripts/Spells): fix logic mistake in spell_generic (#9799)
fix(Scripts/Spells): fix logic mistake in spell_generic (#9799)

- chery-picked from commit (https://github.com/TrinityCore/TrinityCore/commit/25e01b0402b26ccefeae136e7606fc45398ae3af)

Co-Authored-By: Wyrserth <bb4608dd8af56f5c0a9b18c3f4b7a29d2dd72f4c@users.noreply.github.com>

Co-authored-by: Wyrserth <bb4608dd8af56f5c0a9b18c3f4b7a29d2dd72f4c@users.noreply.github.com>
Nefertumm/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Helias/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,azerothcore/azerothcore-wotlk,azerothcore/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,azerothcore/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Helias/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,azerothcore/azerothcore-wotlk,mygithome002/azerothcore-wotlk,mygithome002/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,Helias/azerothcore-wotlk,Helias/azerothcore-wotlk,Nefertumm/azerothcore-wotlk