If a (dead) player get a ress he will have a buff icon for that. Just check it before clicking on skill, to avoid the waste of a swiftcast.