public void OnDeactivate(ObjAIBase unit) { unit.RemoveStatModifier(_statMod); }
public void OnActivate(ObjAIBase unit, Spell ownerSpell) { _statMod = new ChampionStatModifier(); _statMod.AttackSpeed.PercentBonus = _statMod.AttackSpeed.PercentBonus + (10f + 20f * ownerSpell.Level) / 100f; unit.AddStatModifier(_statMod); }
public void OnDeactivate(ObjAIBase unit) { ApiFunctionManager.RemoveBuffHUDVisual(_visualBuff); }
public void OnDeactivate(ObjAIBase unit) { _ownerUnit.RemoveStatModifier(_statMod); ApiFunctionManager.RemoveBuffHUDVisual(_visualBuff); }
public void RemoveListener(object owner, ObjAIBase unit) { listeners.RemoveAll((listener) => listener.Item1 == owner && listener.Item2 == unit); }
public void OnActivate(ObjAIBase unit, Spell ownerSpell) { _statMod = new ChampionStatModifier(); _statMod.MoveSpeed.PercentBonus = _statMod.MoveSpeed.PercentBonus - 0.80f; unit.AddStatModifier(_statMod); }
public void AddListener(object owner, ObjAIBase unit, Action <AttackableUnit, bool> callback) { var listenerTuple = new Tuple <object, ObjAIBase, Action <AttackableUnit, bool> >(owner, unit, callback); listeners.Add(listenerTuple); }
public void OnDeactivate(ObjAIBase unit) { unit.RemoveCrowdControl(_crowd); }
public void OnActivate(ObjAIBase unit, Spell ownerSpell) { unit.ApplyCrowdControl(_crowd); }
public void OnDeactivate(ObjAIBase unit) { unit.RemoveStatModifier(_AttackSpeedMod); }
public void OnActivate(ObjAIBase buffOwner, Spell ownerSpell) { _AttackSpeedMod = new ChampionStatModifier(); _AttackSpeedMod.AttackSpeed.PercentBonus = (new float[] { 0.2f, 0.3f, 0.4f, 0.5f, 0.6f })[ownerSpell.Level - 1]; buffOwner.AddStatModifier(_AttackSpeedMod); }