fix: Removes duplicative spell checks (#849)
This commit is contained in:
parent
e5f55a424a
commit
5df7bf6a75
50 changed files with 78 additions and 425 deletions
|
|
@ -25,15 +25,7 @@ namespace Server.Spells.Fifth
|
|||
|
||||
public void Target(Item item)
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
Caster.SendLocalizedMessage(1005049); // That cannot be dispelled.
|
||||
}
|
||||
else if (!Caster.CanSee(item))
|
||||
{
|
||||
Caster.SendLocalizedMessage(500237); // Target can not be seen.
|
||||
}
|
||||
else if (!item.GetType().IsDefined(typeof(DispellableFieldAttribute), false))
|
||||
if (!item.GetType().IsDefined(typeof(DispellableFieldAttribute), false))
|
||||
{
|
||||
Caster.SendLocalizedMessage(1005049); // That cannot be dispelled.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue