[RPG] What happens to a Ghost when the Possessed creature polymorphs

dnd-5emonsterspolymorph

Consider the following:

The party's resident barbarian, Conan, is targeted by a Ghost's "Possession" ability. He fails the save and is therefore possessed.

Possession (Recharge 6): One humanoid that the ghost can see within 5 ft. of it must succeed on a DC 13 Charisma saving throw or be possessed by the ghost […] The ghost now controls the body […]
The possession lasts until the body drops to 0 hit points, the ghost ends it as a Bonus Action, or the ghost is turned or forced out by an effect like the Dispel Evil and Good spell.

Jack Black, the bard, tries to polymorph his newly possessed friend into a mouse, to make him more manageable. Failed save, the Barbarian body is transformed into a mouse.

So what happens to the Ghost? Is it still possessing the Barbarian even though it is no longer a humanoid?

If it is still possessed, the follow up question relates to what happens when the mouse is killed.

Best Answer

That it is not determined by the rules, but rather at GM's discretion.

There seem to be some controversy on this matter!

Mike Mearls: NO

On the somewhat related question shown up by Sdjz (Posession isn't exactly a spell), tim-grant quotes Mike Mearls:

Does Charm Person ends if polymorph is cast on the charmed humanoid, changing its type to beast?

Mike Mearls: nope, restriction applies to targeting - sticks after successful cast #wotcstaff

Since Charm Person requires a Humanoid target, the possession should not end by a successful Polymorph, according to Mike Mearls.

Note that Mearls' Tweets are not considered official but just how he would rule them at his table. Read them as advice from an experienced GM, but remember they are not "official" in the way that Jeremy Crawford's (cited below) are.

Jeremy Crawford: Yes

However the accepted answer on that thread specifies that changing shape into a non-humanoid form, will end form-dependent spells. As specified by BlueMoon93, Jeremy Crawford specifies in a Sage Advice:

In #DnD, the exceptional trumps the general. (No longer being a valid target trumps condition carryover.)

As @Adam says in a related answer:

Dominate Person requires a humanoid target. All official PC races are humanoid, so while the druid is in its normal form it can be targeted and charmed by a Dominate Person spell. If the druid wildshapes into a beast, its type changes to match that beast. So, the druid is no longer a humanoid, the target of Dominate Person is invalid, and the spell ends. In this way, it works in reverse of the Dominate Beast spell.

Dominate Monster works on any creature. Whether in beast form, humanoid form, or even in a Circle of the Moon druid's elemental form, the druid is still a creature. Thus, even going in and out of wild shape won't make the druid an invalid target. Since the target is still valid, the Dominate Monster spell will still have full effect, even if the druid wild shapes.