本文整理汇总了C#中Obj_AI_Hero.GetSummonerSpellDamage方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Hero.GetSummonerSpellDamage方法的具体用法?C# Obj_AI_Hero.GetSummonerSpellDamage怎么用?C# Obj_AI_Hero.GetSummonerSpellDamage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Hero
的用法示例。
在下文中一共展示了Obj_AI_Hero.GetSummonerSpellDamage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ComboDamage
//.........这里部分代码省略.........
break;
case "KogMaw":
if (spell.Slot == SpellSlot.W)
{
damage += (float)(Damage.GetSpellDamage(src, dsc, spell.Slot) * attacks);
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "LeeSin":
if (spell.Slot == SpellSlot.Q)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot,1);
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Lucian":
if (spell.Slot == SpellSlot.R)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot)*4;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Nunu":
if (spell.Slot != SpellSlot.R && spell.Slot != SpellSlot.Q)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "MasterYi":
if (spell.Slot != SpellSlot.E)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot)*attacks;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "MonkeyKing":
if (spell.Slot != SpellSlot.R)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot) * 4;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Pantheon":
if (spell.Slot == SpellSlot.E)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot)*3;
}
else if (spell.Slot == SpellSlot.R)
{
damage +=0;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Rammus":
if (spell.Slot == SpellSlot.R)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot)*6;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Riven":
if (spell.Slot == SpellSlot.Q)
{
damage += RivenDamageQ(spell, src, dsc);
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Viktor":
if (spell.Slot == SpellSlot.R)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot,1) * 5;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
case "Vladimir":
if (spell.Slot == SpellSlot.E)
{
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot) * 2;
}
else damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
default:
damage += (float)Damage.GetSpellDamage(src, dsc, spell.Slot);
break;
}
}
}
if (src.Spellbook.CanUseSpell(src.GetSpellSlot("summonerdot")) == SpellState.Ready)
{
damage += (float)src.GetSummonerSpellDamage(dsc, Damage.SummonerSpell.Ignite);
}
return damage;
}
示例2: GetChampDmgToMe
//.........这里部分代码省略.........
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "MasterYi":
if (spell.Slot != SpellSlot.E)
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot) * attacks;
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "MonkeyKing":
if (spell.Slot != SpellSlot.R)
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot) * 4;
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "Pantheon":
if (spell.Slot == SpellSlot.E)
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot) * 3;
}
else if (spell.Slot == SpellSlot.R)
{
result += 0;
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "Rammus":
if (spell.Slot == SpellSlot.R)
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot) * 6;
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "Riven":
if (spell.Slot == SpellSlot.Q)
{
result += RivenDamageQ(spell, enemy, player);
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "Viktor":
if (spell.Slot == SpellSlot.R)
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
result += Damage.GetSpellDamage(enemy, player, spell.Slot, 1) * 5;
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
case "Vladimir":
if (spell.Slot == SpellSlot.E)
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot) * 2;
}
else
{
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
}
break;
default:
result += Damage.GetSpellDamage(enemy, player, spell.Slot);
break;
}
}
}
if (enemy.Spellbook.CanUseSpell(player.GetSpellSlot("summonerdot")) == SpellState.Ready)
{
result += enemy.GetSummonerSpellDamage(player, Damage.SummonerSpell.Ignite);
}
foreach (var minions in
ObjectManager.Get<Obj_AI_Minion>()
.Where(i => i.Distance(player.Position) < 750 && i.IsMinion && !i.IsAlly && !i.IsDead))
{
result += minions.GetAutoAttackDamage(player, false);
}
return (float) result;
}
示例3: GetComboDMG
//.........这里部分代码省略.........
{
result += Damage.GetSpellDamage(source, target, spell.Slot) * attacks;
}
else if (spell.Slot == SpellSlot.R)
{
result += basicDmg * 0.6f;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "MonkeyKing":
if (spell.Slot == SpellSlot.R)
{
result += Damage.GetSpellDamage(source, target, spell.Slot) * 4;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "Pantheon":
if (spell.Slot == SpellSlot.E)
{
result += Damage.GetSpellDamage(source, target, spell.Slot) * 3;
}
else if (spell.Slot == SpellSlot.R)
{
result += 0;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "Rammus":
if (spell.Slot == SpellSlot.R)
{
result += Damage.GetSpellDamage(source, target, spell.Slot) * 6;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "Riven":
if (spell.Slot == SpellSlot.Q)
{
result += RivenDamageQ(spell, source, target);
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "Shyvana":
if (spell.Slot == SpellSlot.W)
{
result += Damage.GetSpellDamage(source, target, spell.Slot) * 4;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "Viktor":
if (spell.Slot == SpellSlot.R)
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
result += Damage.GetSpellDamage(source, target, spell.Slot, 1) * 5;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
case "Vladimir":
if (spell.Slot == SpellSlot.E)
{
result += Damage.GetSpellDamage(source, target, spell.Slot) * 2;
}
else
{
result += Damage.GetSpellDamage(source, target, spell.Slot);
}
break;
default:
result += Damage.GetSpellDamage(source, target, spell.Slot);
break;
}
}
}
if (source.Spellbook.CanUseSpell(target.GetSpellSlot("summonerdot")) == SpellState.Ready)
{
result += source.GetSummonerSpellDamage(target, Damage.SummonerSpell.Ignite);
}
return (float) result;
}