mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-15 14:25:32 +01:00
[Bug] Fix awarded ribbon in limited support (#6713)
Fixed awarded ribbon in limited support
This commit is contained in:
parent
f9a21a0ea4
commit
20615bcd21
@ -1109,7 +1109,16 @@ export class LowerStarterPointsChallenge extends Challenge {
|
||||
*/
|
||||
export class LimitedSupportChallenge extends Challenge {
|
||||
public override get ribbonAwarded(): RibbonFlag {
|
||||
return this.value ? ((RibbonData.NO_HEAL << (BigInt(this.value) - 1n)) as RibbonFlag) : 0n;
|
||||
switch (this.value) {
|
||||
case 1:
|
||||
return RibbonData.NO_HEAL as RibbonFlag;
|
||||
case 2:
|
||||
return RibbonData.NO_SHOP as RibbonFlag;
|
||||
case 3:
|
||||
return (RibbonData.NO_HEAL | RibbonData.NO_SHOP | RibbonData.NO_SUPPORT) as RibbonFlag;
|
||||
default:
|
||||
return 0n as RibbonFlag;
|
||||
}
|
||||
}
|
||||
constructor() {
|
||||
super(Challenges.LIMITED_SUPPORT, 3);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user