mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-13 07:22:53 +08:00
Fix some affixes not working
This commit is contained in:
parent
1c9f32cbef
commit
0f43e18d70
@ -113,7 +113,12 @@ public class EntityMonster extends GameEntity {
|
||||
if(monster != null) affixes = monster.affix;
|
||||
}
|
||||
|
||||
if (affixes != null) {
|
||||
if (monsterData != null) {
|
||||
if (affixes == null) affixes = monsterData.getAffix();
|
||||
else affixes.addAll(monsterData.getAffix());
|
||||
}
|
||||
|
||||
if(affixes != null) {
|
||||
for(var affixId : affixes) {
|
||||
var affix = GameData.getMonsterAffixDataMap().get(affixId.intValue());
|
||||
if (!affix.isPreAdd()) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user