[11782] fix the issue in FlightPathMovementGenerator that event for last path point was not processed
[11783] Let scripting library decide if an encounter is in progress in instances

Replace wrong Group::InCombatToInstance check, this was preventing entering when any member is in any combat.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11784] Fix restoring of phase mask when turning gm off

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11785] Implement dungeon encounters (DBC part), thanks to rsa for porting it to mangos

Signed-off-by: Laise <fenrisse@gmail.com>
Edited src/game/DBCStructure.h via GitHub
[11786] Enable additional db achievement requirements for criterias of type 41

* Enable 'achievement_criteria_requirement' support for achievement criterias of type 41 (ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM)
* Drop unneeded check for max type (this is done in default case in switch)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11787] Clean up some redundant GetSpellDuration calls
[11788] Fixed sql update name
[11789] Remove ApplySpellMod body from header. We can explicitly instantiate possible variants.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11790] comment fix in sql
[11791] Implement spells 69048, 69051 and 69023

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11792] Implement spells 68912, 68871, 68875 and 68876

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11793] Add more features to SelectAttackingTarget

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11794] Add support to start timed achievements in BGs

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11795] Drop support for VC 2005
[11796] Fix build in VS11 Developer Preview
[11797] Do not remove item on unrelated auraholder remove

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11798] Implement select spellDifficulty support in RemoveAurasDueToSpell

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11799] Add HasAuraOfDifficulty to support difficulty spells for HasAura

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
[11800] Implement spell 29395

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>