mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(Docker): update to Ubuntu 20.04 + more improvements (#3277)
This commit is contained in:
2
.github/workflows/core_build.yml
vendored
2
.github/workflows/core_build.yml
vendored
@@ -57,4 +57,4 @@ jobs:
|
||||
./bin/acore-docker-generate-etc
|
||||
- name: Build
|
||||
run: |
|
||||
./bin/acore-docker-build-no-scripts
|
||||
./bin/acore-docker-build
|
||||
|
||||
0
bin/acore-docker-remove-build-cache
Normal file → Executable file
0
bin/acore-docker-remove-build-cache
Normal file → Executable file
@@ -1,7 +1,7 @@
|
||||
FROM ubuntu:bionic
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# install the required dependencies to run the authserver
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.* libace-dev net-tools;
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.4.5 libace-dev net-tools;
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=15s --start-period=30s --retries=3 CMD netstat -lnpt | grep :3724 || exit 1
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
FROM ubuntu:bionic
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# install the required dependencies to compile AzerothCore
|
||||
RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.* libace-dev
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev
|
||||
|
||||
# copy the sources from the host machine to the Docker container
|
||||
ADD .git /azerothcore/.git
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM ubuntu:bionic
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# install the required dependencies to run the authserver
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.* libace-dev libreadline-dev net-tools;
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.4.5 libace-dev libreadline-dev net-tools;
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=15s --start-period=30s --retries=3 CMD netstat -lnpt | grep :8085 || exit 1
|
||||
|
||||
|
||||
@@ -501,7 +501,7 @@ void Unit::UpdateSplineMovement(uint32 t_diff)
|
||||
// pussywizard: update always! not every 400ms, because movement generators need the actual position
|
||||
//m_movesplineTimer.Update(t_diff);
|
||||
//if (m_movesplineTimer.Passed() || arrived)
|
||||
UpdateSplinePosition();
|
||||
UpdateSplinePosition();
|
||||
}
|
||||
|
||||
void Unit::UpdateSplinePosition()
|
||||
@@ -15094,7 +15094,7 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
|
||||
continue;
|
||||
// Some spells must always trigger
|
||||
//if (isAlwaysTriggeredAura[aurEff->GetAuraType()])
|
||||
triggerData.effMask |= 1<<i;
|
||||
triggerData.effMask |= 1<<i;
|
||||
}
|
||||
}
|
||||
if (triggerData.effMask)
|
||||
|
||||
@@ -91,7 +91,7 @@ void WorldSession::HandleQuestgiverHelloOpcode(WorldPacket & recvData)
|
||||
GetPlayer()->RemoveAurasByType(SPELL_AURA_FEIGN_DEATH);
|
||||
// Stop the npc if moving
|
||||
//if (!creature->GetTransport()) // pussywizard: reverted with new spline (old: without this check, npc would stay in place and the transport would continue moving, so the npc falls off. NPCs on transports don't have waypoints, so stopmoving is not needed)
|
||||
creature->StopMoving();
|
||||
creature->StopMoving();
|
||||
|
||||
#ifdef ELUNA
|
||||
if (sEluna->OnGossipHello(_player, creature))
|
||||
|
||||
@@ -2517,7 +2517,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
|
||||
// xinef: i think this is wrong, found only 2 vehicles with faction override and one of them should inherit caster faction...
|
||||
//uint32 faction = properties->Faction;
|
||||
//if (!faction)
|
||||
uint32 faction = m_originalCaster->getFaction();
|
||||
uint32 faction = m_originalCaster->getFaction();
|
||||
|
||||
summon->setFaction(faction);
|
||||
break;
|
||||
|
||||
@@ -1308,7 +1308,7 @@ public:
|
||||
//if (team == ~uint32(0))
|
||||
// handler->PSendSysMessage(LANG_COMMAND_ZONENOGRAVEYARDS, zone_id);
|
||||
//else
|
||||
handler->PSendSysMessage(LANG_COMMAND_ZONENOGRAFACTION, zone_id, team_name.c_str());
|
||||
handler->PSendSysMessage(LANG_COMMAND_ZONENOGRAFACTION, zone_id, team_name.c_str());
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -3067,7 +3067,7 @@ public:
|
||||
group->SendUpdate();
|
||||
}
|
||||
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleGroupDisbandCommand(ChatHandler* handler, char const* args)
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
HandOfThaurissan_Timer = 5000;
|
||||
HandOfThaurissan_Timer = 5000;
|
||||
//Counter = 0;
|
||||
//}
|
||||
} else HandOfThaurissan_Timer -= diff;
|
||||
|
||||
@@ -2052,8 +2052,13 @@ public:
|
||||
break;
|
||||
case EVENT_AGGRO_JAINA:
|
||||
if (me->GetVictim())
|
||||
if (Creature* jaina = ObjectAccessor::GetCreature(*me, jainaGUID))
|
||||
jaina->AI()->AttackStart(me->GetVictim()); DoCast(me, SPELL_THUNDER);
|
||||
{
|
||||
if (Creature *jaina = ObjectAccessor::GetCreature(*me, jainaGUID))
|
||||
{
|
||||
jaina->AI()->AttackStart(me->GetVictim());
|
||||
}
|
||||
}
|
||||
DoCast(me, SPELL_THUNDER);
|
||||
_events.ScheduleEvent(EVENT_AGGRO_JAINA, 2 * IN_MILLISECONDS);
|
||||
break;
|
||||
case EVENT_WRYNN_BUFF:
|
||||
|
||||
@@ -1077,10 +1077,11 @@ public:
|
||||
break;
|
||||
case EVENT_ARGENT_CHALLENGE_MOVE_FORWARD:
|
||||
{
|
||||
if (Creature* boss = instance->GetCreature(NPC_ArgentChampionGUID))
|
||||
if (Creature* boss = instance->GetCreature(NPC_ArgentChampionGUID)) {
|
||||
boss->GetMotionMaster()->MovePoint(0, 746.881f, 635.263f, 411.7f);
|
||||
events.ScheduleEvent(EVENT_ARGENT_CHALLENGE_ATTACK, 3000);
|
||||
events.PopEvent();
|
||||
}
|
||||
events.ScheduleEvent(EVENT_ARGENT_CHALLENGE_ATTACK, 3000);
|
||||
events.PopEvent();
|
||||
}
|
||||
break;
|
||||
case EVENT_ARGENT_CHALLENGE_ATTACK:
|
||||
@@ -1152,8 +1153,8 @@ public:
|
||||
bk->ToCreature()->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
|
||||
announcer->SetFacingToObject(bk_vehicle);
|
||||
announcer->AI()->Talk(TEXT_BK_RAFTERS);
|
||||
announcer->SetFacingToObject(bk_vehicle);
|
||||
announcer->AI()->Talk(TEXT_BK_RAFTERS);
|
||||
}
|
||||
events.PopEvent();
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
me->SummonCreature(NPC_HOUND, 0, 0, 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000);
|
||||
else
|
||||
me->SummonCreature(NPC_FEL_IMP, 0, 0, 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000);
|
||||
events.ScheduleEvent(EVENT_PARTY_TIMER, 3000);
|
||||
events.ScheduleEvent(EVENT_PARTY_TIMER, 3000);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,15 +48,15 @@ public:
|
||||
case 24538:
|
||||
if (player->GetAreaId() != 3628)
|
||||
disabled = true;
|
||||
break;
|
||||
break;
|
||||
case 34489:
|
||||
if (player->GetZoneId() != 4080)
|
||||
disabled = true;
|
||||
break;
|
||||
break;
|
||||
case 34475:
|
||||
if (const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(SPELL_ARCANE_CHARGES))
|
||||
Spell::SendCastResult(player, spellInfo, 1, SPELL_FAILED_NOT_ON_GROUND);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
// allow use in flight only
|
||||
|
||||
Reference in New Issue
Block a user