本文整理汇总了C#中HREngine.Bots.Playfield.getSpellHeal方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getSpellHeal方法的具体用法?C# Playfield.getSpellHeal怎么用?C# Playfield.getSpellHeal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.getSpellHeal方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
//Spend all your Mana. Heal for double the mana you spent.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
p.minionGetDamageOrHeal(target, -p.getSpellHeal(2 * p.mana));
p.mana = 0;
}
else p.minionGetDamageOrHeal(target, -p.getSpellHeal(2 * p.enemyMaxMana));
}
示例2: onCardPlay
// Restore #7 Health. Reveal a minion in each deck. If yours costs more, Restore #14 instead.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (p.isServer)
{
//TODO
int heal2 = (ownplay) ? p.getSpellHeal(7) : p.getEnemySpellHeal(7);
p.minionGetDamageOrHeal(target, -heal2);
return;
}
int heal = (ownplay) ? p.getSpellHeal(11) : p.getEnemySpellHeal(11);
p.minionGetDamageOrHeal(target, -heal);
}
示例3: onCardPlay
//todo make it better :D
//Fügt allen Feinden $2 Schaden zu. Stellt bei allen befreundeten Charakteren #2 Leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay)? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
int heal = (ownplay) ? p.getSpellHeal(2) : p.getEnemySpellHeal(2) ;
if (ownplay)
{
p.minionGetDamageOrHeal(p.ownHero, -heal);
p.minionGetDamageOrHeal(p.enemyHero, dmg);
foreach (Minion m in p.ownMinions)
{
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.enemyMinions)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
else
{
p.minionGetDamageOrHeal(p.enemyHero, -heal);
p.minionGetDamageOrHeal(p.ownHero, dmg);
foreach (Minion m in p.enemyMinions)
{
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.ownMinions)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
}
示例4: onCardPlay
//Vernichtet einen Diener. Stellt bei Eurem Helden #3 Leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetDestroyed(target);
int heal = (ownplay) ? p.getSpellHeal(3) : p.getEnemySpellHeal(3);
p.minionGetDamageOrHeal(ownplay ? p.ownHero : p.enemyHero, -heal);
}
示例5: onCardPlay
// verursacht $2 schaden. stellt bei eurem helden #2 leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
int heal = (ownplay) ? p.getSpellHeal(2) : p.getEnemySpellHeal(2);
p.minionGetDamageOrHeal(target, dmg);
p.minionGetDamageOrHeal(ownplay ? p.ownHero : p.enemyHero, -heal);
}
示例6: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = (ownplay) ? p.getSpellHeal(3) : p.getEnemySpellHeal(3);
p.minionGetDamageOrHeal(target, -heal);
if (target.Hp < target.maxHp)
{
int posi = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
p.callKid(kid, posi, ownplay);
}
}
示例7: onCardPlay
// Restore all characters to full Health.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
foreach (Minion m in p.ownMinions)
{
int heal = (ownplay) ? p.getSpellHeal(m.maxHp) : p.getEnemySpellHeal(m.maxHp);
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.enemyMinions)
{
int heal = (ownplay) ? p.getSpellHeal(m.maxHp) : p.getEnemySpellHeal(m.maxHp);
p.minionGetDamageOrHeal(m, -heal);
}
int heal2 = (ownplay) ? p.getSpellHeal(p.enemyHero.maxHp) : p.getEnemySpellHeal(p.enemyHero.maxHp);
p.minionGetDamageOrHeal(p.enemyHero, -heal2);
heal2 = (ownplay) ? p.getSpellHeal(p.ownHero.maxHp) : p.getEnemySpellHeal(p.ownHero.maxHp);
p.minionGetDamageOrHeal(p.ownHero, -heal2);
}
示例8: onCardPlay
//Stellt #8 Leben wieder her. Zieht 3 Karten.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = (ownplay) ? p.getSpellHeal(8) : p.getEnemySpellHeal(8);
p.minionGetDamageOrHeal(target, -heal);
for (int i = 0; i < 3; i++)
{
//this.owncarddraw++;
p.drawACard(CardDB.cardName.unknown, ownplay);
}
}
示例9: onCardPlay
// Restore #4 Health to your hero and gain +2 Attack this turn.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
int heal = p.getSpellHeal(4);
p.minionGetDamageOrHeal(p.ownHero, -heal);
p.minionGetTempBuff(p.ownHero, 2, 0);
}
else
{
int heal = p.getEnemySpellHeal(4);
p.minionGetDamageOrHeal(p.enemyHero, -heal);
p.minionGetTempBuff(p.enemyHero, 2, 0);
}
}
示例10: onCardPlay
// stellt das volle leben eines dieners wieder her und verleiht ihm spott/.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
target.taunt = true;
int heal = (ownplay)? p.getSpellHeal(target.maxHp - target.Hp) : p.getEnemySpellHeal(target.maxHp - target.Hp);
p.minionGetDamageOrHeal(target, heal);
}
示例11: onCardPlay
// stellt #8 leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = (ownplay) ? p.getSpellHeal(8) : p.getEnemySpellHeal(8);
p.minionGetDamageOrHeal(target, -heal);
}
示例12: onCardPlay
// stellt bei allen dienern #4 leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = (ownplay) ? p.getSpellHeal(4) : p.getEnemySpellHeal(4);
p.allMinionsGetDamage(-heal);
}