Core/Units: Defined many UnitFlags3 and implemented UNIT_FLAG3_ALTERNATIVE_DEFAULT_LANGUAGE

This commit is contained in:
Shauren
2022-07-02 23:17:57 +02:00
parent 1a967dcd14
commit 2a53298476
5 changed files with 179 additions and 23 deletions

View File

@@ -4824,10 +4824,12 @@ class spell_gen_war_mode_enlisted : public AuraScript
switch (target->GetTeamId())
{
case TEAM_ALLIANCE:
amount = sWorldStateMgr->GetValue(WS_WAR_MODE_ALLIANCE_BUFF_VALUE, nullptr);
amount = sWorldStateMgr->GetValue(WS_WAR_MODE_ALLIANCE_BUFF_VALUE, target->GetMap());
break;
case TEAM_HORDE:
amount = sWorldStateMgr->GetValue(WS_WAR_MODE_HORDE_BUFF_VALUE, nullptr);
amount = sWorldStateMgr->GetValue(WS_WAR_MODE_HORDE_BUFF_VALUE, target->GetMap());
break;
default:
break;
}
}