本文整理汇总了C#中WCell.RealmServer.Spells.Spell.OverrideAITargetDefinitions方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.OverrideAITargetDefinitions方法的具体用法?C# Spell.OverrideAITargetDefinitions怎么用?C# Spell.OverrideAITargetDefinitions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WCell.RealmServer.Spells.Spell
的用法示例。
在下文中一共展示了Spell.OverrideAITargetDefinitions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitSneedSpells
public static void InitSneedSpells()
{
disarm = SpellHandler.Get(SpellId.Disarm_2); //disarm
disarm.AISettings.SetCooldown(10000);
disarm.OverrideAITargetDefinitions(DefaultTargetAdders.AddAreaSource, // random hostile nearby character
DefaultTargetEvaluators.RandomEvaluator,
DefaultTargetFilters.IsPlayer, DefaultTargetFilters.IsHostile);
SpellHandler.Apply(spell => spell.CooldownTime = 20000, SpellId.MoltenMetal);
SpellHandler.Apply(spell => spell.CooldownTime = 25000, SpellId.MeltOre);
// Rhakzor's slam has a cooldown of about 12s
SpellHandler.Apply(spell => { spell.AISettings.SetCooldown(10000, 14000); }, SpellId.RhahkZorSlam);
SpellHandler.Apply(spell => spell.CooldownTime = 10000, SpellId.SmiteSlam);
// remember the Spells for later use
terrify = SpellHandler.Get(SpellId.Terrify);
terrify.AISettings.SetCooldown(21000);
terrify.OverrideAITargetDefinitions(DefaultTargetAdders.AddAreaSource, // random hostile nearby character
DefaultTargetEvaluators.RandomEvaluator,
DefaultTargetFilters.IsPlayer, DefaultTargetFilters.IsHostile);
distractingPain = SpellHandler.Get(SpellId.DistractingPain);
distractingPain.AISettings.SetCooldown(12000);
distractingPain.OverrideAITargetDefinitions(DefaultTargetAdders.AddAreaSource, // random hostile nearby character
DefaultTargetEvaluators.RandomEvaluator,
DefaultTargetFilters.IsPlayer, DefaultTargetFilters.IsHostile);
ejectSneed = SpellHandler.Get(SpellId.EjectSneed);
}
示例2: InitLordPythas
public static void InitLordPythas()
{
HealingTouch = SpellHandler.Get(SpellId.ClassSkillHealingTouchRank3);
HealingTouch.AISettings.SetCooldownRange(20000, 25000);
HealingTouch.AISettings.IdleTimeAfterCastMillis = 1000;
HealingTouch.OverrideAITargetDefinitions(
DefaultTargetAdders.AddSelf, // Adder
DefaultTargetFilters.IsWoundedEnough); // Filters
LightningBolt = SpellHandler.Get(SpellId.LightningBolt);
LightningBolt.AISettings.SetCooldownRange(2000, 4000);
LightningBolt.AISettings.IdleTimeAfterCastMillis = 1000;
}
示例3: InitDeviateSlayer
public static void InitDeviateSlayer()
{
FatalBite = SpellHandler.Get(SpellId.FatalBite);
FatalBite.AISettings.IdleTimeAfterCastMillis = 1000;
FatalBite.OverrideAITargetDefinitions(
DefaultTargetAdders.AddAreaSource, // Adder
DefaultTargetEvaluators.RandomEvaluator, // Evaluator
DefaultTargetFilters.IsHostile, DefaultTargetFilters.IsPlayer); // Filters
}