TrinityCore/TrinityCore — comment on commit bed3fb6d98e6c43c8588318e6baa8c4433da80ac
File:  line 0
By Muzashi:

There seems to be a problem with SMART_ACTION_MOVE_FORWARD & SMART_ACTION_FORCE_DESPAWN
When the creature despawns and respawns again, it appears in that point where it walked. So in these case the goblin respawns out of the cage and the cage doesn't reset its state.
I was trying to fix another NPC that walks and then despawns and I have the same issue.

Hope the information can help, and sorry for the bad english. Great job Malcrom!