[0.13.4] Dispel Undead works on knights
Posted: Mon Feb 28, 2022 7:59 pm
I'm fairly certain this isn't because of any mod I have installed, but I haven't fully verified that.
To reproduce use a Dispel undead spell on a knight until it works while standing right next to the knight.
I'm fairly certain the cause of the problem is the interaction between PlayerGPS.GetEntityFlags and EnemyEntity.GetEntityGroup
GetEntityFlags uses GetEntityGroup in case EntityType is EnemyClass. However GetEntityGroup in EnemyEntity does not seem to be written with classes in mind.
I think looking at the code to see the problem is even easier than reproducing in game, though I am not sure whether this fix should be to GetEntityGroup or to GetEntityFlags.
To reproduce use a Dispel undead spell on a knight until it works while standing right next to the knight.
I'm fairly certain the cause of the problem is the interaction between PlayerGPS.GetEntityFlags and EnemyEntity.GetEntityGroup
GetEntityFlags uses GetEntityGroup in case EntityType is EnemyClass. However GetEntityGroup in EnemyEntity does not seem to be written with classes in mind.
I think looking at the code to see the problem is even easier than reproducing in game, though I am not sure whether this fix should be to GetEntityGroup or to GetEntityFlags.