Core/Objects: Implemented vignettes

Port From (https://github.com/TrinityCore/TrinityCore/commit/fccf6fb72b60b08dfbe6d5fb17fba55239944fca)
This commit is contained in:
hondacrx
2024-03-13 21:09:46 -04:00
parent 2c008b2b70
commit 4b9b81c7e2
21 changed files with 573 additions and 10 deletions
+9
View File
@@ -4981,6 +4981,15 @@ namespace Game.Spells
target.ToPlayer().SendOnCancelExpectedVehicleRideAura();
}
[AuraEffectHandler(AuraType.SetVignette)]
void HandleSetVignette(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
{
if (!mode.HasAnyFlag(AuraEffectHandleModes.Real))
return;
aurApp.GetTarget().SetVignette((uint)(apply ? GetMiscValue() : 0));
}
[AuraEffectHandler(AuraType.PreventResurrection)]
void HandlePreventResurrection(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
{