Core/Spells fix 0442ff5c991c351cd6da3c04d1768f756d09fe22

Let it apply only to players
Merge pull request #12301 from Unholychick/patch-3

Core/Spells fix 0442ff5c991c351cd6da3c04d1768f756d09fe22