mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-05 20:13:20 -04:00
Improved reliability of HealthWoundTest
This commit is contained in:
@@ -44,6 +44,7 @@ class HealthWoundTest : AcceptanceTest() {
|
||||
character.player.creatureObject.equippedWeapon.woundChance = 100F
|
||||
val npc = spawnNPC("creature_bantha", character.player.creatureObject.location, combatLevelRange = 80..80)
|
||||
|
||||
character.waitUntilAwareOf(npc)
|
||||
character.attack(npc)
|
||||
|
||||
assertTrue(npc.healthWounds > 0)
|
||||
@@ -56,6 +57,7 @@ class HealthWoundTest : AcceptanceTest() {
|
||||
character.player.creatureObject.equippedWeapon.woundChance = 0F
|
||||
val npc = spawnNPC("creature_bantha", character.player.creatureObject.location, combatLevelRange = 80..80)
|
||||
|
||||
character.waitUntilAwareOf(npc)
|
||||
character.attack(npc)
|
||||
|
||||
assertTrue(npc.healthWounds == 0)
|
||||
|
||||
Reference in New Issue
Block a user