Core/Units: Defined many UnitFlags3 and implemented UNIT_FLAG3_ALTERNATIVE_DEFAULT_LANGUAGE

Port From (https://github.com/TrinityCore/TrinityCore/commit/2a5329847636ddc080c461bda06375edfbf3815d)
This commit is contained in:
hondacrx
2022-07-02 20:35:56 -04:00
parent 2cb497075c
commit 6d294143c6
3 changed files with 63 additions and 5 deletions
+2 -2
View File
@@ -4511,10 +4511,10 @@ namespace Scripts.Spells.Generic
switch (target.GetTeamId())
{
case TeamId.Alliance:
amount = Global.WorldStateMgr.GetValue(WorldStates.WarModeAllianceBuffValue, null);
amount = Global.WorldStateMgr.GetValue(WorldStates.WarModeAllianceBuffValue, target.GetMap());
break;
case TeamId.Horde:
amount = Global.WorldStateMgr.GetValue(WorldStates.WarModeHordeBuffValue, null);
amount = Global.WorldStateMgr.GetValue(WorldStates.WarModeHordeBuffValue, target.GetMap());
break;
}
}