Modified Trinitycore 3.3.5a source