本文整理汇总了C#中Obj_AI_Base.GetBuffCount方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.GetBuffCount方法的具体用法?C# Obj_AI_Base.GetBuffCount怎么用?C# Obj_AI_Base.GetBuffCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.GetBuffCount方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetExecuteDamage
public static double GetExecuteDamage(Obj_AI_Base target)
{
return
target.GetBuffCount("TristanaECharge") != 0 ?
Variables.E.GetDamage(target) * (0.3 * target.GetBuffCount("TristanaECharge") + 1)
+ (target.BaseAttackDamage + target.FlatPhysicalDamageMod)
+ (ObjectManager.Player.TotalMagicalDamage * 0.5)
: 0;
}
示例2: GetRawRendDamage
public static float GetRawRendDamage(Obj_AI_Base target, int customStacks = -1)
{
if (target.GetBuffCount("kalistaexpungemarker") != 0 || customStacks > -1)
{
return (_rawRendDamage[Kalista.spells[Spells.E].Level - 1] + _rawRendDamageMultiplier[Kalista.spells[Spells.E].Level - 1] * player.TotalAttackDamage()) +
((customStacks < 0 ? target.GetBuffCount("kalistaexpungemarker") : customStacks) - 1) *
(_rawRendDamagePerSpear[Kalista.spells[Spells.E].Level - 1] + _rawRendDamagePerSpearMultiplier[Kalista.spells[Spells.E].Level - 1] * player.TotalAttackDamage());
}
return 0;
}
示例3: GetComboDamage
private float GetComboDamage(Obj_AI_Base target)
{
float damage = 0f;
if (GeassLib.Functions.Calculations.Damage.CheckNoDamageBuffs((Obj_AI_Hero)target))return damage;
//if (!Champion.Player.IsWindingUp) // can auto attack
// if (Champion.Player.Distance(target) < Champion.Player.AttackRange) // target in auto range
// damage += (float)Champion.Player.GetAutoAttackDamage(target) - 50;
if (Champion.GetSpellR.IsReady())
if (Champion.Player.Distance(target) < Champion.GetSpellR.Range)
damage += Champion.GetSpellR.GetDamage(target);
if (target.HasBuff("tristanaecharge"))
{
int count = target.GetBuffCount("tristanaecharge");
if (!Champion.Player.IsWindingUp)
if (Champion.Player.Distance(target) < Champion.Player.AttackRange) // target in auto range
count++;
damage += (float)(Champion.GetSpellE.GetDamage(target) * (count * 0.30)) + Champion.GetSpellE.GetDamage(target);
return damage;
}
if (Champion.GetSpellE.IsReady())
if (Champion.Player.Distance(target) < Champion.GetSpellE.Range)
damage += (float)(Champion.GetSpellE.GetDamage(target) * 0.30) + Champion.GetSpellE.GetDamage(target); // 1 auto charge
return damage;
}
示例4: GetEdamage
public static float GetEdamage(Obj_AI_Base target)
{
if (target.GetBuffCount("kalistaexpungemarker") > 0)
{
var dmg =
(float)
((new double[] { 20, 30, 40, 50, 60 }[Program.E.Level - 1] +
0.6 * (Program.Player.BaseAttackDamage + Program.Player.FlatPhysicalDamageMod)) +
((target.GetBuffCount("kalistaexpungemarker") - 1) *
(new double[] { 10, 14, 19, 25, 32 }[Program.E.Level - 1] +
new double[] { 0.2, 0.225, 0.25, 0.275, 0.3 }[Program.E.Level - 1] *
(Program.Player.BaseAttackDamage + Program.Player.FlatPhysicalDamageMod))));
if (Program.Player.HasBuff("summonerexhaust"))
{
dmg *= 0.6f;
}
if (Program.Player.HasBuff("urgotcorrosivedebuff"))
{
dmg *= 0.85f;
}
if (target.HasBuff("FerociousHowl"))
{
dmg *= 0.3f;
}
if (target.HasBuff("vladimirhemoplaguedebuff"))
{
dmg *= 1.15f;
}
if (target.Name.Contains("Baron") && Program.Player.HasBuff("barontarget"))
{
dmg *= 0.5f;
}
if (target.Name.Contains("Dragon") && Program.Player.HasBuff("s5test_dragonslayerbuff"))
{
dmg *= (1f - (0.07f * Program.Player.GetBuffCount("s5test_dragonslayerbuff")));
}
return
(float)
Program.Player.CalcDamage(target, LeagueSharp.Common.Damage.DamageType.Physical, dmg + target.FlatHPRegenMod);
}
return 0;
}
示例5: GetEdamage
public static float GetEdamage(Obj_AI_Base target)
{
if (target.GetBuffCount("kalistaexpungemarker") > 0)
{
return EDamage(target);
}
return 0;
}
示例6: EDamage
public static float EDamage(Obj_AI_Base target)
{
var buff = target.HasBuff("twitchdeadlyvenom");
var bc = target.GetBuffCount("twitchdeadlyvenom");
if (!buff || !E.IsLearned) return 0f;
return _Player.CalculateDamageOnUnit(target, DamageType.True,(float)
(new[] { 15, 20, 25, 30, 35 }[E.Level -1] * bc +
0.2 * _Player.FlatMagicDamageMod +
0.25 * _Player.FlatPhysicalDamageMod +
new[] { 20, 35, 50, 65, 80 }[E.Level -1]));
}
示例7: CustomCalculator
public static float CustomCalculator(Obj_AI_Base target, int customStacks = -1)
{
int buff = target.GetBuffCount("KalistaExpungeMarker");
if (buff > 0 || customStacks > -1)
{
var tDamage = (RRD[Program.E.Level - 1] + RRDM[Program.E.Level - 1] * ObjectManager.Player.TotalAttackDamage) +
((customStacks < 0 ? buff : customStacks) - 1) *
(RRPS[Program.E.Level - 1] + RRPSM[Program.E.Level - 1] * ObjectManager.Player.TotalAttackDamage);
return (float)ObjectManager.Player.CalcDamage(target, Damage.DamageType.Physical, tDamage);
}
return 0;
}
示例8: CustomCalculator
public static float CustomCalculator(Obj_AI_Base target, int customStacks = -1)
{
int buff = target.GetBuffCount("KalistaExpungeMarker");
if (buff > 0 || customStacks > -1)
{
var tDamage = (RRD[_E.Level - 1] + RRDM[_E.Level - 1] * Program._Player.TotalAttackDamage) +
((customStacks < 0 ? buff : customStacks) - 1) *
(RRPS[_E.Level - 1] + RRPSM[_E.Level - 1] * Program._Player.TotalAttackDamage);
return (float)Program._Player.CalculateDamageOnUnit(target, DamageType.Physical, tDamage);
//return RRD[_E.Level - 1] + buff * RRPS[_E.Level - 1] +
// Program._Player.TotalAttackDamage * (RRDM[_E.Level - 1] + buff * RRPSM[_E.Level - 1]);
}
return 0;
}
示例9: PassiveCount
internal static int PassiveCount(Obj_AI_Base unit)
{
return unit.GetBuffCount("dariushemo") > 0 ? unit.GetBuffCount("dariushemo") : 0;
}
示例10: ComboDamage
private static float ComboDamage(Obj_AI_Base enemy)
{
var damage = Player.Instance.GetAutoAttackDamage(enemy);
if (_w.IsReady())
{
damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.W);
}
if (_e.IsReady())
{
if (enemy.HasBuff("tristanaecharge"))
{
damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.E) +
Player.Instance.GetSpellDamage(enemy, SpellSlot.E)*
(enemy.GetBuffCount("tristanaecharge")*.30f);
}
}
if (_r.IsReady())
{
damage += Player.Instance.GetSpellDamage(enemy, SpellSlot.R);
}
return damage;
}
示例11: ValidateSentinel
private static void ValidateSentinel(Obj_AI_Base sentinel)
{
if (sentinel.Health == 2 && sentinel.GetBuffCount("kalistaw") == 1)
{
if (!ActiveSentinels.ContainsKey(SentLocation.Item1))
{
ActiveSentinels.Add(SentLocation.Item1, new Dictionary<SentinelLocations, Obj_AI_Base>());
}
ActiveSentinels[SentLocation.Item1].Remove(SentLocation.Item2);
ActiveSentinels[SentLocation.Item1].Add(SentLocation.Item2, sentinel);
SentLocation = null;
RecalculateOpenLocations();
}
}
示例12: hasE
public static bool hasE(Obj_AI_Base target)
{
return target.GetBuffCount("kalistaexpungemarker") > 0;
}
示例13: GetComboDamage
public static float GetComboDamage(Obj_AI_Base enemy)
{
float damage = 0;
if (!ObjectManager.Player.Spellbook.IsAutoAttacking)
{
damage += ObjectManager.Player.GetAutoAttackDamage(enemy, true);
}
if (enemy.HasBuff("tristanaecharge"))
{
damage += (float)(spells[Spells.E].GetDamage(enemy) * (enemy.GetBuffCount("tristanaecharge") * 0.30)) +
spells[Spells.E].GetDamage(enemy);
}
if (spells[Spells.R].IsReady())
{
damage += spells[Spells.R].GetDamage(enemy);
}
return damage;
}
示例14: GetWStacks
private int GetWStacks(Obj_AI_Base target)
{
return target.GetBuffCount("varuswdebuff");
}
示例15: CanKill
public static bool CanKill(Obj_AI_Base target)
{
var targetBuffs = target.GetBuffCount("twitchdeadlyvenom");
if (targetBuffs == 0) return false;
return (float) GetPassiveAndActivateDamage(target, targetBuffs) > target.Health;
}