Misc Fixes
This commit is contained in:
@@ -856,7 +856,12 @@ namespace Game.Entities
|
|||||||
{
|
{
|
||||||
Pet pet = player.GetPet();
|
Pet pet = player.GetPet();
|
||||||
if (pet != null && pet.IsAlive() && pet.IsControlled())
|
if (pet != null && pet.IsAlive() && pet.IsControlled())
|
||||||
pet.GetAI().KilledUnit(victim);
|
{
|
||||||
|
if (pet.IsAIEnabled())
|
||||||
|
pet.GetAI().KilledUnit(victim);
|
||||||
|
else
|
||||||
|
Log.outError(LogFilter.Unit, "Pet doesn't have any AI in Unit.Kill()");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 10% durability loss on death
|
// 10% durability loss on death
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ namespace Game.Movement
|
|||||||
owner.UpdateAllowedPositionZ(x, y, ref z);
|
owner.UpdateAllowedPositionZ(x, y, ref z);
|
||||||
|
|
||||||
bool success = _path.CalculatePath(x, y, z, owner.CanFly());
|
bool success = _path.CalculatePath(x, y, z, owner.CanFly());
|
||||||
if (!success || _path.GetPathType().HasAnyFlag(PathType.NoPath | PathType.Incomplete))
|
if (!success || _path.GetPathType().HasAnyFlag(PathType.NoPath))
|
||||||
{
|
{
|
||||||
if (cOwner)
|
if (cOwner)
|
||||||
cOwner.SetCannotReachTarget(true);
|
cOwner.SetCannotReachTarget(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user