[z0896] Implement server side global cooldown check.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also pet/controlled unit global cooldown code replaced by new placed in charmInfo structure.

Thanks to nos4r2zod for testing and gcd range check implement.

(based on master commit defa062)

(based on commit 6ba4e25)
[z0897] Disable CombatSpell check for triggered spells

Signed-off-by: Laise <fenrisse@gmail.com>

(based on commit 3d627b7)

(based on commit 9f35da2)
[z0898] Fixed client reject any login attempt after WOW_FAIL_INCORRECT_PASSWORD receive.

Problem similar all all client versions.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

(based on master commit edc1dc1)

(based on commit b72dcb4)
[z0899] Add optional argument to SummonCreature, summon as active object

When true, the summoned will be able to load grids as needed.

Signed-off-by: NoFantasy <nofantasy@nf.no>

(based on master commit 490e86f)

(based on commit ee06dbf)
[z0900] Extend SCRIPT_COMMAND_TEMP_SUMMON_CREATURE to set summoned as active object

Field data_flags 0x01 will enable active state

Signed-off-by: NoFantasy <nofantasy@nf.no>

(based on master commit 468bf08)

(based on commit d6d221d)
[z0901] Fixed second and later resets schedule for raid/heroic after server restart.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

(based on master commit 7cc4454)

(based on commit 0b43b6a)
[z0902] At schedule second reset update real reset time.

Missing part of prev. related commit.

Also without this code at second reset after restart server will go to infinity loop.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

(based on master commit 9782d22)

(based on commit 851ed97)
[z0903] Fix typo in spell damage/healing default bonus for staked spell

Signed-off-by: pasdVn <pasdVn@getmangos.com>

(based on master commit 385484f)

(based on commit c605384)
[z0904] Fixed attack type used in spell damage calculation for ranged attacks

In fact it part of big spell bbonus calculation rewrite but better not wait
it backporting for thsi local problem.

(based on commit a068cba)
[z0905] Some cleanups form commit.

Most remade at branch in same way as master version.

(based on master commit 331c877)

(based on commit 33d7813)
[z0906] Add frand function for random floats with min/max, similar to urand

(based on master commit e02e806)

Signed-off-by: DasBlub <dasblub@gmail.com>

(based on commit a84aeb3)
[z0907] Add optionial arg to Unit::SetFacingTo which is passed to SendMessageToSet

(based on master commit f7cc770)

Signed-off-by: DasBlub <dasblub@gmail.com>

(based on commit 23cd92e)
[z0908] Fixe typo in command help text.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

(based on master commit 8ecdf57)

(based on commit 7025cc8)
[z0909] Fixing some comments in mangos.sql

Not all sql tools like the mix of comment styles in import of dump, so using inline style.

Signed-off-by: NoFantasy <nofantasy@nf.no>

(based on master commit ee9642b)

(based on commit af51454)
[z0910] Allow set afk/dnd message in afk/dnd state

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

(based on master commit b44fe31)

(based on commit 627eb7a)
[z0911] Fixed ObjectGuid::IsUnit

Also some better string format for pet guid case.

Thanks to zergtmn for find problem.

(based on master commit fa5ab88)

For pre-3.x version IsCreatureOrPet == IsAnyTypeCreature but better have both
for better code compativility with master.

(based on commit 3892c03)
[z0912] Fix handling of spell 14157 and 14189 so they really apply combo points after current spell finished.

(based on master commit d512b1e)

Will need rebackported after aura holders support adding...

(based on commit 30103e8)
[z0913] Output debug only note for known not implemented packets

This is packets that have allowed to receive setting (not STATUS_NEVER)
and WorldSession::Handle_NULL handler.

Mark some packets in this way.

(based on master commit 0d5b653)

(based on commit 1ee1333)
[z0914] More correctly check delay time for spell with speed.

(based on master commit 662cf42)

(based on commit 3d554e7)
[z0915] Fixed field types in mangos.sql in consistant with related sql updates.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

(based on master commit 3c6d81f)

(based on commit fe0d0c8)