Exemple #1
0
		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);
		}
Exemple #2
0
            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;
            }
Exemple #3
0
			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
			}