diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-09-06 21:15:58 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-09-06 21:15:58 +0200 |
| commit | 4ef4b1d236e06dd043a8d77a0bcaf27c69164442 (patch) | |
| tree | 77c93d4b82d903f453f88692ad5207c93d612400 /go/game | |
| parent | cada620152321225b0bd5449afc6e7ad4aac9013 (diff) | |
| download | muhqs-game-4ef4b1d236e06dd043a8d77a0bcaf27c69164442.tar.gz muhqs-game-4ef4b1d236e06dd043a8d77a0bcaf27c69164442.zip | |
fix shield implementation by removing superfluous whitespace
Diffstat (limited to 'go/game')
| -rw-r--r-- | go/game/cardImplementations_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/go/game/cardImplementations_test.go b/go/game/cardImplementations_test.go index ff41a752..8ab87ecd 100644 --- a/go/game/cardImplementations_test.go +++ b/go/game/cardImplementations_test.go @@ -233,6 +233,19 @@ func TestArmor(t *testing.T) { } } +func TestShield(t *testing.T) { + s, _, player, _ := newMockState() + + a := s.addNewUnit(NewCard("base/archer"), Position{0, 0}, player) + oldHealth := a.Health + shield := newEquipment(NewCard("base/shield"), a, player) + s.addPermanent(shield) + + if a.Health == oldHealth { + t.Fatal("archer healh no increased") + } +} + func TestBanner(t *testing.T) { s, _, player, opo := newMockState() |
