Core/Units: moved health and power ordering predicates from Unit header into CommonPredicates

Port From (https://github.com/TrinityCore/TrinityCore/commit/2f6ed2c203b16a1d1e85f61a8b8e2cf3d1a4e784)
This commit is contained in:
hondacrx
2024-02-06 10:01:30 -05:00
parent 33cb5faf28
commit aac60cf9a8
9 changed files with 74 additions and 77 deletions
+5 -4
View File
@@ -6,6 +6,7 @@ using Framework.Dynamic;
using Game.DataStorage;
using Game.Entities;
using Game.Maps;
using Game.Miscellaneous;
using Game.Networking.Packets;
using Game.Scripting;
using Game.Spells;
@@ -76,10 +77,10 @@ namespace Scripts.Spells.Generic
uint spellId = SharedConst.GetFirstSchoolInMask(eventInfo.GetSchoolMask()) switch
{
SpellSchools.Fire => SpellGenAdaptiveWardingFire,
SpellSchools.Nature => SpellGenAdaptiveWardingNature,
SpellSchools.Frost => SpellGenAdaptiveWardingFrost,
SpellSchools.Shadow => SpellGenAdaptiveWardingShadow,
SpellSchools.Arcane => SpellGenAdaptiveWardingArcane,
SpellSchools.Nature => SpellGenAdaptiveWardingNature,
SpellSchools.Frost => SpellGenAdaptiveWardingFrost,
SpellSchools.Shadow => SpellGenAdaptiveWardingShadow,
SpellSchools.Arcane => SpellGenAdaptiveWardingArcane,
_ => 0
};
+1
View File
@@ -7,6 +7,7 @@ using Game.BattleGrounds;
using Game.DataStorage;
using Game.Entities;
using Game.Loots;
using Game.Miscellaneous;
using Game.Scripting;
using Game.Spells;
using System;
+1
View File
@@ -6,6 +6,7 @@ using Framework.Dynamic;
using Game.AI;
using Game.DataStorage;
using Game.Entities;
using Game.Miscellaneous;
using Game.Scripting;
using Game.Spells;
using System;