Core/Spells fix 0442ff5c991c351cd6da3c04d1768f756d09fe22

Let it apply only to players.
Partly fixes https://github.com/TrinityCore/TrinityCore/issues/12292