mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Altered the test to match correct functionality
This commit is contained in:
parent
d36c279166
commit
9848fd6e81
@ -46,11 +46,8 @@ describe("Moves - Shed Tail", () => {
|
|||||||
|
|
||||||
expect(feebas).not.toBe(magikarp);
|
expect(feebas).not.toBe(magikarp);
|
||||||
expect(feebas.hp).toBe(feebas.getMaxHp());
|
expect(feebas.hp).toBe(feebas.getMaxHp());
|
||||||
// Note: Shed Tail's HP cost is currently not accurate to mainline, as it
|
// Note: Altered the test to be consistent with the correct HP cost :yipeevee_static:
|
||||||
// should cost ceil(maxHP / 2) instead of max(floor(maxHp / 2), 1). The current
|
expect(magikarp.hp).toBe(Math.floor(magikarp.getMaxHp() / 2));
|
||||||
// implementation is consistent with Substitute's HP cost logic, but that's not
|
|
||||||
// the case in mainline for some reason :regiDespair:.
|
|
||||||
expect(magikarp.hp).toBe(Math.ceil(magikarp.getMaxHp() / 2));
|
|
||||||
expect(substituteTag).toBeDefined();
|
expect(substituteTag).toBeDefined();
|
||||||
expect(substituteTag?.hp).toBe(Math.floor(magikarp.getMaxHp() / 4));
|
expect(substituteTag?.hp).toBe(Math.floor(magikarp.getMaxHp() / 4));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user