Skip to content

Commit

Permalink
Merge branch 'jianjam-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
chucklu committed Sep 18, 2019
2 parents b345204 + 40a4c75 commit d2186da
Show file tree
Hide file tree
Showing 8 changed files with 182 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DefaultRoutine/Chuck.SilverFish/ai/Hrtprozis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public void updateHero(Weapon w, string heron, CardDB.Card ability, bool abrdy,
if (this.ownHeroStartClass == TAG_CLASS.INVALID) this.ownHeroStartClass = hero.cardClass;
this.ownHero.poisonous = this.ownWeapon.poisonous;
this.ownHero.lifesteal = this.ownWeapon.lifesteal;
if (this.ownWeapon.name == CardName.gladiatorslongbow) this.ownHero.immuneWhileAttacking = true;
if (this.ownWeapon.name == CardName.gladiatorslongbow || this.ownWeapon.name == CardName.mirageblade) this.ownHero.immuneWhileAttacking = true;

this.heroAbility = ability;
this.OwnHeroPowerCost = abCost;
Expand All @@ -483,7 +483,7 @@ public void updateHero(Weapon w, string heron, CardDB.Card ability, bool abrdy,
if (this.enemyHeroStartClass == TAG_CLASS.INVALID) this.enemyHeroStartClass = enemyHero.cardClass;
this.enemyHero.poisonous = this.enemyWeapon.poisonous;
this.enemyHero.lifesteal = this.enemyWeapon.lifesteal;
if (this.enemyWeapon.name == CardName.gladiatorslongbow) this.enemyHero.immuneWhileAttacking = true;
if (this.enemyWeapon.name == CardName.gladiatorslongbow || this.ownWeapon.name == CardName.mirageblade) this.enemyHero.immuneWhileAttacking = true;

this.enemyAbility = ability;
this.enemyHeroPowerCost = abCost;
Expand Down
2 changes: 1 addition & 1 deletion DefaultRoutine/Chuck.SilverFish/ai/Playfield.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5912,7 +5912,7 @@ public void equipWeapon(CardDB.Card c, bool own)
hero.Attack += c.Attack;
hero.windfury = c.windfury;
hero.UpdateReadiness();
hero.immuneWhileAttacking = (c.name == CardName.gladiatorslongbow);
hero.immuneWhileAttacking = (c.name == CardName.gladiatorslongbow) || (c.name == CardName.mirageblade);

List<Minion> temp = (own) ? this.ownMinions : this.enemyMinions;
foreach (Minion m in temp)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using SilverFish.Enums;

namespace Chuck.SilverFish.cards._04Expansion._012ULD
{
/// <summary>
/// Tome of Origination
/// 源生魔典
/// </summary>
public class Sim_ULD_140p : SimTemplate
{
/// <summary>
/// Hero Power Draw a card. It costs 0.
/// 英雄技能 抽一张牌。其法力值消耗为 0点。
/// </summary>
/// <param name="p"></param>
/// <param name="ownplay"></param>
/// <param name="target"></param>
/// <param name="choice"></param>
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.drawACard(CardName.unknown, ownplay);
if (ownplay)
{
p.owncards[p.owncards.Count - 1].manacost = 0;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections.Generic;

namespace Chuck.SilverFish.cards._04Expansion._012ULD
{
/// <summary>
/// Ramkahen Roar
/// 拉穆卡恒的咆哮
/// </summary>
public class Sim_ULD_155p : SimTemplate
{
/// <summary>
/// Hero Power Give your minions +2 Attack.
/// 英雄技能 使你的所有随从获得+2攻击力。
/// </summary>
/// <param name="p"></param>
/// <param name="ownplay"></param>
/// <param name="target"></param>
/// <param name="choice"></param>
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
foreach (Minion m in temp)
{
p.minionGetBuffed(m, 2, 0);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using SilverFish.Enums;

namespace Chuck.SilverFish.cards._04Expansion._012ULD
{
/// <summary>
/// Mirage Blade
/// 幻象之刃
/// </summary>
public class Sim_ULD_326t : SimTemplate
{
/// <summary>
/// Your hero is Immune while attacking.
/// 你的英雄在攻击时具有免疫。
/// </summary>
/// <param name="p"></param>
/// <param name="ownplay"></param>
/// <param name="target"></param>
/// <param name="choice"></param>
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
CardDB.Card weapon = CardDB.Instance.getCardDataFromID(CardIdEnum.ULD_326t);
p.equipWeapon(weapon, ownplay);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System.Collections.Generic;

namespace Chuck.SilverFish.cards._04Expansion._012ULD
{
/// <summary>
/// Emperor Wraps
/// 帝王裹布
/// </summary>
public class Sim_ULD_431p : SimTemplate
{
/// <summary>
/// Hero Power Summon a 2/2 copy of a friendly minion.
/// 英雄技能 召唤一个友方随从的2/2的复制。
/// </summary>
/// <param name="p"></param>
/// <param name="ownplay"></param>
/// <param name="target"></param>
/// <param name="choice"></param>
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
int pos = temp.Count;
if (pos < 7)
{
p.CallKid(target.handcard.card, pos, ownplay);
temp[pos].setMinionToMinion(target);
p.minionSetAngrToX(target, 2);
p.minionSetLifetoX(target, 2);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using SilverFish.Enums;
using System;

namespace Chuck.SilverFish.cards._04Expansion._012ULD
{
/// <summary>
/// Ascendant Scroll
/// 升格卷轴
/// </summary>
public class Sim_ULD_433p : SimTemplate
{
/// <summary>
/// Hero Power Add a random Mage spell to your hand. It costs 2 less.
/// 英雄技能 随机将一张法师法术牌置入你的手牌。该牌的法力值消耗减少2点。
/// </summary>
/// <param name="p"></param>
/// <param name="ownplay"></param>
/// <param name="target"></param>
/// <param name="choice"></param>
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.drawACard(CardName.unknown, ownplay, true);
p.owncards[p.owncards.Count - 1].manacost = Math.Max(p.owncards[p.owncards.Count - 1].manacost -= 2, 0);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using SilverFish.Enums;

namespace Chuck.SilverFish.cards._04Expansion._012ULD
{
/// <summary>
/// Obelisk's Eye
/// 方尖碑之眼
/// </summary>
public class Sim_ULD_724p : SimTemplate
{
/// <summary>
/// Hero Power Restore 3 Health. If you target a minion, also give it +3/+3.
/// 英雄技能 恢复3点生命值。如果你的目标是一个随从,则同时使其获得+3/+3。
/// </summary>
/// <param name="p"></param>
/// <param name="ownplay"></param>
/// <param name="target"></param>
/// <param name="choice"></param>
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = 3;
if (ownplay)
{
if (p.anzOwnAuchenaiSoulpriest > 0 || p.embracetheshadow > 0) heal = -heal;
if (p.doublepriest >= 1) heal *= (3 * p.doublepriest);
}
else
{
if (p.anzEnemyAuchenaiSoulpriest >= 1) heal = -heal;
if (p.enemydoublepriest >= 1) heal *= (3 * p.enemydoublepriest);
}
p.minionGetDamageOrHeal(target, -heal);

if (target.handcard.card.type == CardType.Minion)
{
p.minionGetBuffed(target, 3, 3);
}
}
}
}

0 comments on commit d2186da

Please sign in to comment.