Skip to content

Commit

Permalink
fix: detect reroll of hero skins
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Dec 11, 2024
1 parent 1e617ca commit 3a5252b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Collectible.Warrior.SporeEmpressMoldara or
if(entity.GetTag(GameTag.TRANSFORMED_FROM_CARD) == 46706)
gameState.ChameleosReveal = new Tuple<int, string>(entityId, cardId);
// Battlegrounds hero reroll
if(entity.HasTag(GameTag.BACON_HERO_CAN_BE_DRAFTED) && (game.GameEntity?.GetTag(GameTag.STEP) ?? (int)Step.INVALID) <= (int)Step.BEGIN_MULLIGAN)
if(entity.IsHero && entity.IsControlledBy(Core.Game.Player.Id) && (game.GameEntity?.GetTag(GameTag.STEP) ?? (int)Step.INVALID) <= (int)Step.BEGIN_MULLIGAN)
gameState.GameHandler?.HandleBattlegroundsHeroReroll(entity.Id, cardId);
}
gameState.SetCurrentEntity(entityId);
Expand Down

0 comments on commit 3a5252b

Please sign in to comment.