fix: Removes duplicate UnderTransformation static method (#1383)

This commit is contained in:
romanlysenko 2023-04-04 08:07:12 +03:00 • committed by GitHub
parent a1a50603da
commit 5c6525de46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View file

@ -43,8 +43,6 @@ namespace Server.Misc
private static bool CheckTransform(Mobile m, Type type) => TransformationSpellHelper.UnderTransformation(m, type);
private static bool CheckAnimal(Mobile m, Type type) => AnimalForm.UnderTransformation(m, type);
private static TimeSpan Mobile_HitsRegenRate(Mobile from)
{
var points = AosAttributes.GetValue(from, AosAttribute.RegenHits);
@ -81,7 +79,7 @@ namespace Server.Misc
points += 20;
}
if (CheckAnimal(from, typeof(Dog)) || CheckAnimal(from, typeof(Cat)))
if (AnimalForm.UnderTransformation(from, typeof(Dog)) || AnimalForm.UnderTransformation(from, typeof(Cat)))
{
points += from.Skills.Ninjitsu.Fixed / 30;
}
@ -112,7 +110,7 @@ namespace Server.Misc
cappedPoints += 15;
}
if (CheckAnimal(from, typeof(Kirin)))
if (AnimalForm.UnderTransformation(from, typeof(Kirin)))
{
cappedPoints += 20;
}