fix: Players casting is sometimes not disturbed (#1138)

This commit is contained in:
mark1145 2022-08-17 15:17:39 +10:00 committed by GitHub
parent 2ae762904f
commit 23ae7a3c26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 44 deletions

View file

@ -386,15 +386,8 @@ namespace Server.Mobiles
Disturb(DisturbType.Hurt, false);
}
public override bool CheckDisturb(DisturbType type, bool checkFirst, bool resistable)
{
if (type is DisturbType.EquipRequest or DisturbType.UseRequest /* || type == DisturbType.Hurt*/)
{
return false;
}
return true;
}
public override bool CheckDisturb(DisturbType type, bool checkFirst, bool resistable) =>
type != DisturbType.EquipRequest && type != DisturbType.UseRequest;
public override void DoHurtFizzle()
{