fix: Removes duplicate CheckTransform static method (#1384)

This commit is contained in:
romanlysenko 2023-04-04 09:03:40 +03:00 • committed by GitHub
parent 5c6525de46
commit 3c86af4ff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,6 @@
using Server.Mobiles;
using System;
using Server.Spells.Ninjitsu;
namespace Server.Items;
@ -27,7 +28,7 @@ public class InfusedThrow : WeaponAbility
IMount mount = defender.Mount;
if ((defender.Mounted || defender.Flying || Spells.Ninjitsu.AnimalForm.UnderTransformation(defender)) &&
if ((defender.Mounted || defender.Flying || AnimalForm.UnderTransformation(defender)) &&
!attacker.Mounted && !attacker.Flying && defender is not ChaosDragoon && defender is not ChaosDragoonElite)
{
defender.PlaySound(0x140);