fix: Removes duplicative spell checks (#849)
This commit is contained in:
parent
e5f55a424a
commit
5df7bf6a75
50 changed files with 78 additions and 425 deletions
|
|
@ -30,15 +30,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public void Target(Mobile m)
|
||||
{
|
||||
if (m == null)
|
||||
{
|
||||
Caster.SendLocalizedMessage(1072077); // You may only cast this spell on yourself or a bonded pet.
|
||||
}
|
||||
else if (!Caster.CanSee(m))
|
||||
{
|
||||
Caster.SendLocalizedMessage(500237); // Target can not be seen.
|
||||
}
|
||||
else if (m.IsDeadBondedPet || !m.Alive)
|
||||
if (m.IsDeadBondedPet || !m.Alive)
|
||||
{
|
||||
// As per Osi: Nothing happens.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,16 +26,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public void Target(Mobile m)
|
||||
{
|
||||
if (m == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Caster.CanSee(m))
|
||||
{
|
||||
Caster.SendLocalizedMessage(500237); // Target can not be seen.
|
||||
}
|
||||
else if (m_Table.ContainsKey(m))
|
||||
if (m_Table.ContainsKey(m))
|
||||
{
|
||||
Caster.SendLocalizedMessage(501775); // This spell is already in effect.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,16 +18,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public void Target(Mobile m)
|
||||
{
|
||||
if (m == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Caster.CanSee(m))
|
||||
{
|
||||
Caster.SendLocalizedMessage(500237); // Target can not be seen.
|
||||
}
|
||||
else if (CheckHSequence(m))
|
||||
if (CheckHSequence(m))
|
||||
{
|
||||
var loc = m.Location;
|
||||
loc.Z += 50;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue