Core/Gameobject: Added missing break in 24ef7dbdf4b76d312cb1df44958c6ccc79bf75f4
Core/GameObject: Format comments and apply rename of previous commit.
Core/GameObject: Store unit in GameObject::SetLootState - required for trap activation.
Core/GameObject: Add missing initialization of m_lootStateUnit
Core/Misc: Fix enchants broken in 3aca9e64b34baee781f402c3f33ad7ee7991c232

Compare cast item entry instead of checking cast item spells to fix the exploit mentioned in 3aca9e64b34baee781f402c3f33ad7ee7991c232 without breaking any functionality.
Core/GameObject: Finish moving activation code of traps to GO_ACTIVATED

Fixing #6388 should be easier now...
Core/GameObject: Fix crash added in c6bf7e0b1d615a22c2145c6f4a757a10a9eca92c

Thanks @jackpoz
Remove unnecessary check in previous fix
Merge pull request #1 from TrinityCore/master

pull