Core/SAI: Fix crash

Disable script type SMART_SCRIPT_TYPE_TIMED_ACTIONLIST actions if they are trying to overwrite the timed action list while iterating it.
This was invalidating the iterator and deleting any smart action stored in it, including the current executed one.

Valgrind log:
 Invalid read of size 1
  at SmartScript::OnUpdate(unsigned int) (SmartScript.cpp:3258)
  by SmartAI::UpdateAI(unsigned int) (SmartAI.cpp:331)
  by Creature::Update(unsigned int) (Creature.cpp:544)
 Address 0x1807d9b2 is 10 bytes after a block of size 40 alloc'd
  at operator new(unsigned long) (vg_replace_malloc.c:319)
  ...
  by SmartAIMgr::LoadSmartAIFromDB() (SmartScriptMgr.cpp:231)
  by World::SetInitialWorldSettings() (World.cpp:1724)
  by Master::Run() (Master.cpp:169)
  by main (Main.cpp:142)
Core/SAI: Improve error log

Log both target and current Object when checking if a Creature/GameObject have SmartAI enabled.
DB/Items: Added "few" missing items.
Core/Group: Add sanity checks to CMSG_LOOT_METHOD's handler

If lootMethod or lootThreshold is invalid, portrait menus become unusable to the entire raid.
DB/Creature: Fix trigger visibility

They where visible to players and invisible to gms.
Core/Group: Fix exploit

The master looter should be in the group.
Core/Group: Any party member may mark targets (this does not apply to raid groups)

Also ensure that the targeted player is not hostile.
DB/Creature: Fix another trigger visibility

They where visible to players and invisible to gms.
Core/SAI: Fix assertion in SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST

Fix assertion triggered in SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST if max entry is less than min entry
DB/Creature: Fix more triggers visibility

If anyone can post a complete list of triggers visible to players but no to gms create a ticket with them, thx.
DB/Creature: Fix more triggers visibility

Closes #8178
DB/Creature: Fix another trigger visibility

Updates #5182, by mweinelt
Scripts/Krikthir the Gatewatcher: converted to EventMap and small optimization
Merge pull request #11457 from MitchesD/krikthir

Scripts/Krikthir the Gatewatcher: converted to EventMap and small optimalization
Core: Fix build
Scripts: Added missing stuff in 1d1aeda86ca69e78daf85c3c4b1b29509c374ad7
Core/DB/Achievements:
- fixed arena season title achievements and rewards
- added mailtemplate support for `achievement_reward` table
- fixed typo in GetBattleMasterBG which causes achievement reward mail expire in 1 day

Ref #8777
Merge pull request #11584 from Dehravor/group

Group related fixes
DB/Items: Fix some startup errors

By Fateswhisper, updates #11587
[TW213] updated qc with a fix