public override int GetHashCode() { var hashCode = -319405917; hashCode = hashCode * -1521134295 + AttackId.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = 1257390416; hashCode = hashCode * -1521134295 + PokedexId.GetHashCode(); hashCode = hashCode * -1521134295 + AttackId.GetHashCode(); return(hashCode); }
/// <summary> /// Gets the attack data. /// </summary> /// <returns>The attack data.</returns> /// <param name="id">Identifier.</param> public AttackData GetAttackData(AttackId id) { if (m_attackDict.ContainsKey(id)) { return(m_attackDict[id]); } return(null); }
private void checkAndUseShield(double incDmg = 0, Obj_AI_Base attacker = null, Obj_AI_Base attacked = null, SpellSlot attackerSpellSlot = SpellSlot.Unknown, AttackId attackId = AttackId.Unknown) { justUseAgainstCheck(titanswraith, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(blackshield, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(unbreakable, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(palecascade, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(bulwark, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(courage, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(eyeofstorm, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(inspire, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(helppix, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(prismaticbarrier, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(commandprotect, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(spellshield, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(nocturneShield, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(yasuoShield, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(fioraRiposte, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(tryndaUlt, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(fioraDance, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(masterQ, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(lissR, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(nasusUlt, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(renekUlt, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(leonaW, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(annieE, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(vladW, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(wukongW, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(kayleR, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(nidaE, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(fizzE, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(sionW, incDmg, attacker, attacked, attackerSpellSlot, attackId); justUseAgainstCheck(sonaW, incDmg, attacker, attacked, attackerSpellSlot, attackId); }
// And about ignore HP% check? private void justUseAgainstCheck(MItem item, double incDmg, Obj_AI_Base attacker = null, Obj_AI_Base attacked = null, SpellSlot attackerSpellSlot = SpellSlot.Unknown, AttackId attackId = AttackId.Unknown) { // Se tem o spell if (Utility.GetSpellSlot(_player, item.name) != SpellSlot.Unknown) { if (attacker != null && attacked != null) { bool use = false; if (attackId != AttackId.Unknown) { switch (attackId) { case AttackId.Basic: use = Config.Item("basic" + item.menuVariable).GetValue<bool>(); break; case AttackId.Ignite: use = Config.Item("king" + item.menuVariable).GetValue<bool>(); break; case AttackId.King: use = Config.Item("ignite" + item.menuVariable).GetValue<bool>(); break; case AttackId.Tower: use = Config.Item("tower" + item.menuVariable).GetValue<bool>(); break; case AttackId.Spell: use = Config.Item(item.menuVariable + attacker.BaseSkinName).GetValue<bool>() && Config.Item(attackerSpellSlot + item.menuVariable + attacker.BaseSkinName).GetValue<bool>(); break; } } if (use) { bool ignoreHP = false; if (attackId == AttackId.Spell) { ignoreHP = Config.Item("ignore" + item.menuVariable + attacker.BaseSkinName).GetValue<bool>(); } if (item.type == ItemTypeId.Ability && attacked.IsMe) { checkAndUse(item, "", incDmg, ignoreHP); } else if (item.type == ItemTypeId.TeamAbility) { teamCheckAndUse(item, "", incDmg, attacked, attacker, ignoreHP); } } } // OFF JustPred else { checkAndUse(item, "", incDmg); teamCheckAndUse(item, "", incDmg, attacked); } } }
private void callDeff(Obj_AI_Base attacker, Obj_AI_Hero target, double incDmg, SpellSlot spellSlot, AttackId attackId) { teamCheckAndUse(heal, Config.Item("useWithHealDebuff").GetValue<bool>() ? "" : "summonerhealcheck", incDmg); teamCheckAndUse(solari, "", incDmg); teamCheckAndUse(mountain, "", incDmg); teamCheckAndUse(mikaelHP, "", incDmg); checkAndUseShield(incDmg, attacker, target, spellSlot, attackId); if (target.IsMe) { checkAndUse(zhonya, "", incDmg); checkAndUse(wooglet, "", incDmg); checkAndUse(barrier, "", incDmg); checkAndUse(seraph, "", incDmg); } }