Core/Refactor: Part 3

This commit is contained in:
hondacrx
2018-05-16 19:57:48 -04:00
parent 225a5d27f7
commit 5dacd669b5
112 changed files with 564 additions and 561 deletions
+8 -8
View File
@@ -255,14 +255,14 @@ namespace Scripts.Spells.Priest
void FilterTargets(List<WorldObject> targets)
{
targets.RemoveAll(new Predicate<WorldObject>(obj =>
targets.RemoveAll(obj =>
{
Unit target = obj.ToUnit();
if (target)
return !GetCaster().IsInRaidWith(target);
return true;
}));
});
uint maxTargets = (uint)(GetCaster().HasAura(SpellIds.GlyphOfCircleOfHealing) ? 6 : 5); // Glyph of Circle of Healing
@@ -368,14 +368,14 @@ namespace Scripts.Spells.Priest
{
void FilterTargets(List<WorldObject> targets)
{
targets.RemoveAll(new Predicate<WorldObject>(obj =>
targets.RemoveAll(obj =>
{
Unit target = obj.ToUnit();
if (target)
return !GetCaster().IsInRaidWith(target);
return true;
}));
});
uint maxTargets = 3;
@@ -492,23 +492,23 @@ namespace Scripts.Spells.Priest
{
void FilterTargets(List<WorldObject> targets)
{
targets.RemoveAll(new Predicate<WorldObject>(obj =>
targets.RemoveAll(obj =>
{
Unit target = obj.ToUnit();
if (target)
return target.GetPowerType() != PowerType.Mana;
return true;
}));
});
targets.RemoveAll(new Predicate<WorldObject>(obj =>
targets.RemoveAll(obj =>
{
Unit target = obj.ToUnit();
if (target)
return !GetCaster().IsInRaidWith(target);
return true;
}));
});
uint maxTargets = 3;