Cleans up Spell Targeting (#36)
This commit is contained in:
parent
de50bc9e43
commit
472b84f5ff
99 changed files with 653 additions and 2192 deletions
|
|
@ -960,11 +960,13 @@ namespace Server.Mobiles
|
|||
if (targ == null)
|
||||
return false;
|
||||
|
||||
bool isReveal = targ is RevealSpell.InternalTarget;
|
||||
bool isDispel = targ is DispelSpell.InternalTarget;
|
||||
bool isParalyze = targ is ParalyzeSpell.InternalTarget;
|
||||
bool isTeleport = targ is TeleportSpell.InternalTarget;
|
||||
bool isInvisible = targ is InvisibilitySpell.InternalTarget;
|
||||
ISpellTarget spellTarg = targ as ISpellTarget;
|
||||
|
||||
bool isReveal = spellTarg?.Spell is RevealSpell;
|
||||
bool isDispel = spellTarg?.Spell is DispelSpell;
|
||||
bool isParalyze = spellTarg?.Spell is ParalyzeSpell;
|
||||
bool isTeleport = spellTarg?.Spell is TeleportSpell;
|
||||
bool isInvisible = spellTarg?.Spell is InvisibilitySpell;
|
||||
bool teleportAway = false;
|
||||
|
||||
Mobile toTarget;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue