How do things like targetHitEffectBuff and playerHitEffectBuff determine whether to target the player or the monster?
they both target the thing that triggered them ie the monster. There's no point to targeting the player because you can just use self spells. Or you could look at it like targeted stuff targets monsters and self targets player (on the triggered spell)