v3.2.2: fixed on-equip talents not triggering at all with obliv shard

This commit is contained in:
Evan Debenham
2025-08-22 14:46:13 -04:00
parent 9eaf2618f7
commit cea4fd9f27
@@ -841,10 +841,20 @@ public enum Talent {
identify = true; identify = true;
} }
if (identify && !ShardOfOblivion.passiveIDDisabled()){ if (identify) {
if (ShardOfOblivion.passiveIDDisabled()) {
if (item instanceof Weapon){
((Weapon) item).setIDReady();
} else if (item instanceof Armor){
((Armor) item).setIDReady();
} else if (item instanceof Ring){
((Ring) item).setIDReady();
}
} else {
item.identify(); item.identify();
} }
} }
}
public static void onItemCollected( Hero hero, Item item ){ public static void onItemCollected( Hero hero, Item item ){
if (hero.pointsInTalent(THIEFS_INTUITION) == 2){ if (hero.pointsInTalent(THIEFS_INTUITION) == 2){