Splits up mobile (#296)

This commit is contained in:
Kamron Batman 2020-10-31 23:30:51 -07:00 committed by GitHub
parent 1ca8655fc1
commit daf48ebdf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 407 additions and 616 deletions

View file

@ -1342,7 +1342,7 @@ namespace Server.Mobiles
return (double)chance / 1000;
}
public override void Damage(int amount, Mobile from)
public override void Damage(int amount, Mobile from = null, bool informMount = true)
{
var oldHits = Hits;
@ -1356,9 +1356,7 @@ namespace Server.Mobiles
amount = (int)(amount * 1.25);
}
var oath = BloodOathSpell.GetBloodOath(from);
if (oath == this)
if (from != null && BloodOathSpell.GetBloodOath(from) == this)
{
amount = (int)(amount * 1.1);
from.Damage(amount, from);