mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server into inv_possessions_rework
This commit is contained in:
+13
-7
@@ -1168,11 +1168,11 @@ void Merc::CalcRestState() {
|
||||
}
|
||||
}
|
||||
|
||||
RestRegenHP = 6 * (GetMaxHP() / RuleI(Character, RestRegenHP));
|
||||
RestRegenHP = 6 * (GetMaxHP() / zone->newzone_data.FastRegenHP);
|
||||
|
||||
RestRegenMana = 6 * (GetMaxMana() / RuleI(Character, RestRegenMana));
|
||||
RestRegenMana = 6 * (GetMaxMana() / zone->newzone_data.FastRegenMana);
|
||||
|
||||
RestRegenEndurance = 6 * (GetMaxEndurance() / RuleI(Character, RestRegenEnd));
|
||||
RestRegenEndurance = 6 * (GetMaxEndurance() / zone->newzone_data.FastRegenEndurance);
|
||||
}
|
||||
|
||||
bool Merc::HasSkill(EQEmu::skills::SkillType skill_id) const {
|
||||
@@ -1408,7 +1408,7 @@ void Merc::AI_Process() {
|
||||
if(DivineAura())
|
||||
return;
|
||||
|
||||
int hateCount = entity_list.GetHatedCount(this, nullptr);
|
||||
int hateCount = entity_list.GetHatedCount(this, nullptr, false);
|
||||
if(GetHatedCount() < hateCount) {
|
||||
SetHatedCount(hateCount);
|
||||
|
||||
@@ -1475,8 +1475,14 @@ void Merc::AI_Process() {
|
||||
if (RuleB(Mercs, MercsUsePathing) && zone->pathing) {
|
||||
bool WaypointChanged, NodeReached;
|
||||
|
||||
glm::vec3 Goal = UpdatePath(GetTarget()->GetX(), GetTarget()->GetY(), GetTarget()->GetZ(),
|
||||
GetRunspeed(), WaypointChanged, NodeReached);
|
||||
glm::vec3 Goal = UpdatePath(
|
||||
GetTarget()->GetX(),
|
||||
GetTarget()->GetY(),
|
||||
GetTarget()->GetZ(),
|
||||
GetRunspeed(),
|
||||
WaypointChanged,
|
||||
NodeReached
|
||||
);
|
||||
|
||||
if (WaypointChanged)
|
||||
tar_ndx = 20;
|
||||
@@ -1582,7 +1588,7 @@ void Merc::AI_Process() {
|
||||
}
|
||||
}
|
||||
|
||||
if(IsMoving())
|
||||
if (IsMoving())
|
||||
SendPositionUpdate();
|
||||
else
|
||||
SendPosition();
|
||||
|
||||
Reference in New Issue
Block a user