[c12867] Cleanup and rework power type setting

Properly send SMSG_POWER_UPDATE only when required
Update and power type wrappers
Send the right power amount when on SendSpellGo

(based on commit [12661] - 51c0286)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12868] Add missing spell id 21883

(based on commit [12670] - 8bfe668)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12869] Implement ACTION_T_CHANGE_MOVEMENT for EventAI

This will allow changing the creature movement based on eventAI events.

Requested in scriptdev2/scriptdev2-cata#4

(based on commit [12671] - 54c0593)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12870] Implement SCRIPT_COMMAND_SEND_AI_EVENT_AROUND for dbscripts engine

This allows more flexibility in interaction between eventAI and dbscripts

(based on commit [12672] - f1a0fd3)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12871] Implement spell effect 42281

(based on commit [12673] - 81d3555)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12872] Implement script library hook for NpcSpellClick

(based on commit [12674] - b032ba8)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
Fix bug in debug SendOpcode command

Spotted by Laizerox,
explained by evilwow and tested by Neo.

Operator precedence: ! before >>

(based on commit 408f27b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12873] Implement some of the spell effects used in Yogg Saron encounter

Target limit and effect for 63744, 63745 and 63747
Target limit for 62978
Spell effect for 63030
Stacking exception for 65157 and 64775

(based on commit [12675] - 9770095)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12874] All units can have Not_Selectable flag while boarded on vehicle

Thanks to debilvul for pointing

(based on commit [12676] - a1c5b8f)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12875] Make use of GROUP_UPDATE_FLAG_VEHICLE_SEAT

Original patch by thenecromancer (TC)

(based on commit [12677] - 90a9e0d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12876] Fix possible client crash when passenger despawns while boarded

(based on commit [12678] - f3b81f1)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12877] Revert [c12849]. This needs to be fixed in another way!

(based on commit [12679] - dbf3463)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12878] Improve [c12876] with additional Vehicle checkes

This is required because transports are not always vehicles

(based on commit [12680] - 8585b1b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12879] Fix spell 9712

Fix player spell 9712 used in quests 2203 & 2501. Spell 9712 has NPC target while triggered spell 21029 has self-target (player).

Signed-off-by: Cala Haryon <calaftp@free.fr>

(based on commit [12681] - f3efdce)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12880] Disable AI attack for controllable vehicles

This won't allow vehicles which can be controlled to use any type of AI attack

(based on commit [12682] - af0c505)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12881] Implement CreatureLinking Flag DESPAWN_ON_DESPAWN

Thanks to grz3s for testing and feedback.

(based on commit [12683] - e37d292)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12882] Implement more spells for Ulduar

Target limits: 64465 and 63802
Spell effects: 64132, 64172, 65206, 64123, 64131, 64466, 64467 and 64148
Aura stacking 64161 and 65294

(based on commit [12684] - d4103b1)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12883] Implement more spells for Yogg-Saron encounter

Spell effects: 63993, 64069 and 65238
Aura proc: 63305 and fix 64148

(based on commit [12685] - c3cc3c3)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12884] Allow SpellClick during combat for dungeons

(based on commit [12686] - 7a7390e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[c12885] Implement sanity spells for Yogg-Saron encounter

Limit target: 63830
Implement dummy aura: 63122 and 63050
Implement spell effects: 64555, 63122, 63795, 65301, 63803, 64164, 64168, 64059

Also
Set positive targets for 63745 and 63747, and update aura proc 63305

(based on commit [12687] - a6ec811)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>