chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -134,7 +134,7 @@ public class AnimateDeadSpell : NecromancerSpell, ITargetingSpell<Item>
|
|||
}
|
||||
else
|
||||
{
|
||||
Type type = c.Owner?.GetType();
|
||||
var type = c.Owner?.GetType();
|
||||
|
||||
if (c.ItemID != 0x2006 || c.Animated || type == typeof(PlayerMobile) || type == null ||
|
||||
c.Owner?.Fame < 100 ||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class PoisonStrikeSpell : NecromancerSpell, ITargetingSpell<Mobile>
|
|||
var cbc = Caster as BaseCreature;
|
||||
var isMonster = cbc?.Controlled == false && (cbc.IsAnimatedDead || !cbc.Summoned);
|
||||
|
||||
foreach (Mobile targ in m.GetMobilesInRange(2))
|
||||
foreach (var targ in m.GetMobilesInRange(2))
|
||||
{
|
||||
if (targ == Caster || m == targ || !SpellHelper.ValidIndirectTarget(Caster, targ)
|
||||
|| !Caster.CanBeHarmful(targ, false))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue