本文整理汇总了C#中HREngine.Bots.Playfield.getEnemyHeroPowerDamage方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getEnemyHeroPowerDamage方法的具体用法?C# Playfield.getEnemyHeroPowerDamage怎么用?C# Playfield.getEnemyHeroPowerDamage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.getEnemyHeroPowerDamage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.NAX11_03);//Fallout Slime
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getHeroPowerDamage(1) : p.getEnemyHeroPowerDamage(1);
p.allMinionsGetDamage(dmg);
int place = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
foreach (Minion m in p.ownMinions)
{
if (m.Hp <= 0) p.callKid(kid, place, ownplay);
}
foreach (Minion m in p.enemyMinions)
{
if (m.Hp <= 0) p.callKid(kid, place, ownplay);
}
}
示例2: onCardPlay
//Hero Power: Deal 2 damage to the left-most enemy
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay) ? p.enemyMinions : p.ownMinions;
if (temp.Count < 1) return;
else
{
int dmg = (ownplay) ? p.getHeroPowerDamage(2) : p.getEnemyHeroPowerDamage(2);
target = temp[0];
foreach (Minion m in temp)
{
if (m.zonepos < target.zonepos) target = m;
}
p.minionGetDamageOrHeal(target, dmg);
}
}
示例3: onCardPlay
//Hero Power: Deal 2 damage to the enemy hero and Freeze it.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getHeroPowerDamage(2) : p.getEnemyHeroPowerDamage(2);
p.minionGetDamageOrHeal(ownplay ? p.enemyHero : p.ownHero, dmg);
target.frozen = true;
}
示例4: onCardPlay
//Hero Power: Deal 2 damage.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getHeroPowerDamage(2) : p.getEnemyHeroPowerDamage(2);
p.minionGetDamageOrHeal(target, dmg);
}
示例5: onCardPlay
// Hero Power: Deal 1 damage.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getHeroPowerDamage(1) : p.getEnemyHeroPowerDamage(1);
if (target == null) target = ownplay ? p.enemyHero : p.ownHero;
p.minionGetDamageOrHeal(target, dmg);
}