Core/Creature: Update template - reinitialize spell bar for vehicles

	* update template didn't change spell bar for players if on vehicle that updates it's template, initialize spells was needed
	* combined with faction changing, since when update is called player faction is ignored and it should be changed to his (based on sniffs)
	* the idea of this automated check inside fix SAI problems mainly, because there you have nothing to use to reinitialize the bar - closes #5254
Merge pull request #8681 from xomachine/master

Core/PetAI: Emote and autocast fixes
Merge pull request #8565 from Trista/master

Core/Creature: Update template - reinitialize spell bar for vehicles
Merge pull request #8667 from Kirkhammett/engi_fix

Core/Script: Fix Dimensional Ripper spell learning
Merge pull request #8131 from flippy84/master

Core/Script: Heigan phase 2
DB/ToC: correcting a typo at immunities added at 1f9db80b69379f3

Closes #8641

Signed-off-by: Nay <dnpd.dd@gmail.com>
Core/Scripts: Adding script hooks to allow for third party scripts to modify damage dealt.

Originally from the VAS Autobalance script, slightly modified.

Only addresses Spells, Dots, and Melee Damage. I'll have look at the current modules on ways of doing this but, Environmental Damage(fire/lava/drowning), Fall Damage, and Potentially AoE aren't covered by these.

Closes #7867

Signed-off-by: Nay <dnpd.dd@gmail.com>
Core/Player: Fix build
Core/Quest: Song of Wind and Water

* cleanned a bit and edited old @Treak fix, credits go to him, the quest will* work 100% blizzlike when target_unit_master #8643 gets a fix for vehicle. What concerns the quest is done. I've already fixed the core kill_credit issue, but needs to be discussed.
* leaving the vehicle_AI until they get integrated correctly to SAI, this can be easily converted after. Currently need to make some hacks to make it work close to good if using SAI. (specificly terrain acts weird at that place)

Closes: #5424
Core: Fix non-PCH build again
Core: Remove tabs, fix whitespace and fix nonPCH properly (5am, too late for this stuff...)
SQL: Fix sql import problems
Core/Quest: Optimize and clean more last commit

* thx to @Gacko and @click for pointing out problems and give suggestiosn
* Sorry for the mess, forgot I can make more changes after initial change, this should be final...
* https://github.com/TrinityCore/TrinityCore/commit/48141bbfa6887095f5b4a687ca3bde516c751771
Core/Scripts: Fixed crash on shutdown
Core/Scipts: Missed changes from 7be13b6fda29daf825e24bffe6095d0a987afce1
DB/Spells: Fix support for Preserved Holly

* it needs to trigger reindeer transformation used by Fresh Holly, while has a side core check already handled. This needs to happen in the same time and not after.
* traced the auras are same from sniffs and the mechanic
* now Fa-la-la-la Ogri'La should be completeble for all (tested all normal cases)

Closes: #4333
DB/Scripts: Implemented creature_text for Infinite Corruptor
Core/Spells: Fix a typo in Bombing Run quests

* no idea how this number left like this for so long unseen, good it filters 1 target
Server/Quest: Convert quest_end_script and drop of some c++

* drop off c++ script of Clintan Dreamwalker ID: 22834
* convert quest_end_script of 10964 to SAI
* rewrite and add bigger event support
* add a checker to his summon so the spirit script can trigger event alone (I didn't try to rewrite next quest...)

Closes: #8689
Core: Fix non pch build