Undead and constructs are immune to ability damage
and ability drain, but are they immune to ability score
penalties such as that created by the ray of enfeeblement
spell?
Undead and constructs aren’t innately immune to ability
score penalties. Note, however, that ray of enfeeblement and
many similar spells that apply such penalties are necromantic
effects, to which constructs (but not undead) are immune. So
that ray of enfeeblement will work just fine against a wight, but
not against a shield guardian.
大概就是这样了