Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ef0c045202a6af33fb991f2ff765fa183ce976f)
This commit is contained in:
@@ -4468,10 +4468,10 @@ namespace Scripts.Spells.Generic
|
||||
|
||||
switch (target.GetTeamId())
|
||||
{
|
||||
case TeamId.Alliance:
|
||||
case BatttleGroundTeamId.Alliance:
|
||||
amount = WorldStateMgr.GetValue(WorldStates.WarModeAllianceBuffValue, target.GetMap());
|
||||
break;
|
||||
case TeamId.Horde:
|
||||
case BatttleGroundTeamId.Horde:
|
||||
amount = WorldStateMgr.GetValue(WorldStates.WarModeHordeBuffValue, target.GetMap());
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user