Skip to content

Commit

Permalink
Add Divine Shield
Browse files Browse the repository at this point in the history
Touches #7.
  • Loading branch information
beheh committed May 19, 2016
1 parent 2d13969 commit 44cf0ff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Binary file added assets/images/inplay_minion_divine_shield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion less/entities.less
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
height: 100%;

div.visuals {
.inplay-base, .inplay-legendary, .inplay-taunt, .inplay-shield, .inplay-frozen,
.inplay-base, .inplay-legendary, .inplay-taunt, .inplay-shield, .inplay-frozen, .inplay-divine-shield,
.icon-deathrattle, .icon-trigger, .icon-inspire, .icon-poisonous,
.effect-sleep {
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion ts/TexturePreloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CardArtPreloader extends Stream.Writable {
'inhand_minion_legendary', 'mana_crystal', 'inplay_minion', 'effect_sleep',
'hero_power_exhausted', 'hero_armor', 'hero_attack', 'icon_deathrattle', 'icon_inspire',
'icon_poisonous', 'icon_trigger', 'inplay_minion_frozen', 'inplay_minion_legendary',
'inplay_minion_taunt', 'inplay_weapon', 'inplay_weapon_dome'];
'inplay_minion_taunt', 'inplay_minion_divine_shield', 'inplay_weapon', 'inplay_weapon_dome'];

constructor(public cardArtDirectory?: string, public assetDirectory?: string) {
super({objectMode: true});
Expand Down
7 changes: 7 additions & 0 deletions ts/components/game/visuals/InPlayCardArt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class InPlayCardArt extends React.Component<EntityProps, {}> {
});
}

if (entity.isDivineShielded()) {
images.push({
image: "inplay_minion_divine_shield.png",
classes: ["inplay-divine-shield"]
});
}

if (entity.getTag(GameTag.INSPIRE) > 0) {
images.push({
image: "icon_inspire.png",
Expand Down

0 comments on commit 44cf0ff

Please sign in to comment.