本文整理汇总了C#中Obj_AI_Base.HasBuff2方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.HasBuff2方法的具体用法?C# Obj_AI_Base.HasBuff2怎么用?C# Obj_AI_Base.HasBuff2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.HasBuff2方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getComboDamage
static float getComboDamage(Obj_AI_Base enemy)
{
float damage = 0;
if (Q.IsReady())
damage += Q.GetDamage2(enemy);
if (W.IsReady())
damage += W.GetDamage2(enemy);
if (E.IsReady())
damage += E.GetDamage2(enemy);
if (R.IsReady())
damage += R.GetDamage2(enemy);
if (!enemy.HasBuff2("jarvanivmartialcadencecheck"))
damage += JarvanPDamage(enemy) + (float)Player.GetAutoAttackDamage2(enemy, false);
return damage;
}
示例2: GetItemDamage2
public static double GetItemDamage2(this Obj_AI_Hero source, Obj_AI_Base target, DamageItems item)
{
switch (item)
{
case DamageItems.Bilgewater:
return source.CalcDamage(target, DamageType.Magical, 100);
case DamageItems.Botrk:
return source.CalcDamage(target, DamageType.Physical, target.MaxHealth * 0.1);
case DamageItems.FrostQueenClaim:
return source.CalcDamage(target, DamageType.Magical, 50 + 5 * source.Level);
case DamageItems.Hexgun:
return source.CalcDamage(target, DamageType.Magical, 150 + 0.4 * source.FlatMagicDamageMod);
case DamageItems.Hydra: //실제 데미지와는 조금 다름. 혹여나 나중에 수정해야할 일이 생길수도.
return source.CalcDamage(
target, DamageType.Physical, source.BaseAttackDamage + source.FlatPhysicalDamageMod);
case DamageItems.OdingVeils:
return source.CalcDamage(target, DamageType.Magical, 200);
case DamageItems.Tiamat: //실제 데미지와는 조금 다름. 혹여나 나중에 수정해야할 일이 생길수도.
return source.CalcDamage(
target, DamageType.Physical, source.BaseAttackDamage + source.FlatPhysicalDamageMod);
case DamageItems.LiandrysTorment:
var d = target.Health * .2f * 3f;
return (target.CanMove || target.HasBuff2("slow", true)) ? d : d * 2;
}
return 1d;
}
示例3: JarvanPDamage
static float JarvanPDamage(Obj_AI_Base enemy) //Code Made By RL244.
{
return (float)Damage.CalcDamage(Player,enemy, Damage.DamageType.Physical,
(float)(!enemy.HasBuff2("jarvanivmartialcadencecheck") ? (enemy.Health)*0.1d : 0));
}