Permalink
Browse files

fx_animal_rage: fixed targetting

[GameScript/WARNING]: Unknown object filter: 255 (null)
  • Loading branch information...
1 parent 61cfa1c commit dabb99cc2737bd12672ce308a368fef2f294986d @lynxlynxlynx lynxlynxlynx committed Jun 25, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 gemrb/plugins/IWDOpcodes/IWDOpcodes.cpp
@@ -1945,9 +1945,9 @@ int fx_animal_rage (Scriptable* /*Owner*/, Actor* target, Effect* fx)
if (!target->LastTarget) {
//depends on whom it considers enemy
if (STAT_GET(IE_EA)<EA_EVILCUTOFF) {
- Enemy->objectParameter->objectFilters[0]=EA_ENEMY;
+ Enemy->objectParameter->objectFields[0] = EA_ENEMY;
} else {
- Enemy->objectParameter->objectFilters[0]=EA_ALLY;
+ Enemy->objectParameter->objectFields[0] = EA_ALLY;
}
//see the nearest enemy
if (SeeCore(target, Enemy, false)) {

0 comments on commit dabb99c

Please sign in to comment.