[s1133] Send SMSG_NEW_WORLD after teleport destination set.

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

(based on commit a08062b)
[s1134] Implement spell 46939

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

(based on commit 124b7e3)
[s1135] Resolve porblems with Pet regeneration timer conflict with Creature version.

* Creature regeneration code moved to new virtual function RegenerateAll
* Pet instead direct call own regeneration code overwrite now RegenerateAll

Big thanks to Vladskywolf for problem research and original patch version.

(based on commit ba1d88a)
[s1136] Fixed bug of s1099: spell aura handler for id 243 is missing.

It raises sigsegv on spell of 34248 item.

(based on iorlas's repo commit 14dd0cc)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
[s1137] Use ArenaType enum instead raw values

* Drop duplicate ArenaTeamTypes
* Use enum type where appropriate
* More strict check integrity arena team data at loading.

(based on commit 1d1633e)
(based on commit e7f0298)
[s1138] Some cleanup of JUST_ALIVED for creature and add comments.

Also restore npcflags after LoadCreatureAddon.

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

(based on commit 2d2a8ff)
[s1139] Replace some 0-values with UNIT_DYNFLAG_NONE

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

(based on commit 1d43671)
(based on commit 3bb3513)
[s1140] Reapply persistent aura at return to affected range.

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

(based on commit 0075db9)
[s1141] Add and use max arena team size function instead direct code.

(based on commit db3ab85)
[s1142] Updated some structs and enums.

(based on commit e104755)
(based on commit f9728d1)
[s1143] One more ArenaTeam::GetMaxMembersSize use case.

(based on commit 8c2c5f5)
[s1144] Implement SPELL_ATTR_EX3_CANT_MISS attribute. Should fix alot of 'too-often-missing' spells

(based on commit f75f9fd)
[s1145] Fix wrong faction-based targeting of DynamicObject's auras

(based on commit c97246d)
(based on commit 0252617)
(based on commit e139383)
Check for SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE when checking school immunity

(based on commit a376b02)
[s1146] Move holder-wide code from effect loop in immune cast checks.

(based on commit 16ca9da)
[s1147] small code refactoring: use container typedefs instead of direct container declarations to simplify code.

Signed-off-by: Ambal <pogrebniak@gala.net>

(based on commit 7eced98)
[s1148] Restore visuals for infinitely channeled spells

Thx Schmoozerd for pointing problem and testing.

(based on commit 196863c)
[s1149] Implement CONDITION_LEARNABLE_ABILITY, check by spell and optionally item

The primary use are intended for items that teach spell, typically for primary/secondary tradeskills.

Condition is true when player does not know the spell already, has the needed corresponding skill (and skill level) and does not have the item already (when item is defined).

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

(based on commit c9c6ec5)
[s1150] Drop not needed MAX_CONDITION define

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

(based on commit f49436d)
[s1151] Convert tabs to 4 spaces

Thanks to Darkknight900 for pointing out!

Used this script on sql/ and src/: find . -iname *.h -o -iname *.cpp -o -iname *.inc -o -iname *.sql | xargs sed -i 's/	/    /g'

(based on commit 37dba72)

Only applied backported cases.