v3.2.2: fixed on-equip talents not triggering at all with obliv shard
This commit is contained in:
+11
-1
@@ -841,10 +841,20 @@ public enum Talent {
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void onItemCollected( Hero hero, Item item ){
|
||||
if (hero.pointsInTalent(THIEFS_INTUITION) == 2){
|
||||
|
||||
Reference in New Issue
Block a user