fix: Removes duplicative spell checks (#849)
This commit is contained in:
parent
e5f55a424a
commit
5df7bf6a75
50 changed files with 78 additions and 425 deletions
|
|
@ -22,13 +22,9 @@ namespace Server.Spells.Second
|
|||
|
||||
public void Target(Item item)
|
||||
{
|
||||
if (!(item is TrappableContainer cont))
|
||||
if (item is not TrappableContainer cont)
|
||||
{
|
||||
Caster.SendMessage("You can't disarm that"); // TODO: Localization?
|
||||
}
|
||||
else if (!Caster.CanSee(item))
|
||||
{
|
||||
Caster.SendLocalizedMessage(500237); // Target can not be seen.
|
||||
Caster.SendLocalizedMessage(502373); // That doesn't appear to be trapped
|
||||
}
|
||||
else if (cont.TrapType != TrapType.None && cont.TrapType != TrapType.MagicTrap)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue