Skip to content

Commit

Permalink
Merge pull request #386 from DigitalBox98/improved
Browse files Browse the repository at this point in the history
Adjustment on keep lord auto-heal for low level BG
  • Loading branch information
NetDwarf authored May 28, 2022
2 parents ded98ab + c69136a commit d50d9e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GameServer/ai/brain/Guards/Lord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public LordBrain() : base()

public override void Think()
{
if (Body != null && Body.Spells.Count == 0)
// Add auto heal for lord above level 15
if (Body != null && Body.Spells.Count == 0 && Body.Level>=15)
{
switch (Body.Realm)
{
Expand Down
2 changes: 1 addition & 1 deletion GameServer/keeps/Gameobjects/Guards/GameKeepGuard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ private static DBSpell LordBaseHealSpell
DBSpell spell = BaseHealSpell;
spell.CastTime = 2;
spell.Target = "Self";
spell.Value = 225;
spell.Value = -2.5; // 2.5% of caster health instead of constant value
if (GameServer.Instance.Configuration.ServerType != eGameServerType.GST_PvE)
spell.Uninterruptible = true;
return spell;
Expand Down

0 comments on commit d50d9e4

Please sign in to comment.