public Spells(DemonHunter newDemonHunterSpells) { this.demonHunterSpells = newDemonHunterSpells; if (demonHunterSpells.Equals(DemonHunter.DoubleSlash)) { this.spellName = "Double slash"; this.spellValue = 200; this.spellClass = new Classes(Classes.Class.DemonHunter); this.kindOfSpell = KindOfSpell.Damage; this.mana = 30; } if (demonHunterSpells.Equals(DemonHunter.DemonSkin)) { this.spellName = "Demon skin"; this.spellValue = 110; this.spellClass = new Classes(Classes.Class.DemonHunter); this.kindOfSpell = KindOfSpell.ArmorGain; this.mana = 50; } if (demonHunterSpells.Equals(DemonHunter.DemonicInfusion)) { this.spellName = "Demonic Infusion"; this.spellValue = 600; this.spellClass = new Classes(Classes.Class.DemonHunter); this.kindOfSpell = KindOfSpell.LifeSteal; this.mana = 80; } }
public static bool AttackUnit(Unit unit, TimeSpan timeout) { if (unit.Type == UnitType.Monster && unit.GetAttributeInteger(UnitAttribute.Is_NPC) == 0 && unit.GetAttributeInteger(UnitAttribute.Is_Helper) == 0 && unit.GetAttributeInteger(UnitAttribute.Invulnerable) == 0) { switch (Me.SNOId) { case SNOActorId.Barbarian_Male: case SNOActorId.Barbarian_Female: return(Classes.Barbarian.AttackUnit(unit, timeout)); case SNOActorId.WitchDoctor_Male: case SNOActorId.WitchDoctor_Female: //return Classes.WitchDoctor.AttackUnit(unit, timeout); break; case SNOActorId.Wizard_Male: case SNOActorId.Wizard_Female: //return Classes.Wizard.AttackUnit(unit, timeout); break; case SNOActorId.Demonhunter_Male: case SNOActorId.Demonhunter_Female: return(DemonHunter.AttackUnit(unit, timeout)); case SNOActorId.Monk_Male: case SNOActorId.Monk_Female: //return Classes.Monk.AttackUnit(unit, timeout); break; } } return(false); }
protected static void MoveReallyFast(float x, float y) { switch (Me.SNOId) { case SNOActorId.Barbarian_Male: case SNOActorId.Barbarian_Female: Barbarian.SprintEverywhere(x, y); break; case SNOActorId.WitchDoctor_Male: case SNOActorId.WitchDoctor_Female: Walk(x, y); break; case SNOActorId.Wizard_Male: case SNOActorId.Wizard_Female: Walk(x, y); break; case SNOActorId.Demonhunter_Male: case SNOActorId.Demonhunter_Female: DemonHunter.MoveSuperFuckingFast(x, y); break; case SNOActorId.Monk_Male: case SNOActorId.Monk_Female: Walk(x, y); break; } }
/// <summary> /// Saves all the tabs at once /// </summary> public void SaveAll() { Save(); Barbarian.Save(); Crusader.Save(); DemonHunter.Save(); Monk.Save(); WitchDoctor.Save(); Wizard.Save(); Debug.Save(); Avoidance.Save(); Kiting.Save(); Log.Info("Saved All Settings"); }
protected void Awake() { myBody = GetComponent <Rigidbody2D>(); demonHunter = FindObjectOfType <DemonHunter>(); scytheDirection = demonHunter.throwScytheDirection; }