v1.0.1: fixed scorpios and trickster not acting when attacked out of FOV
This commit is contained in:
parent
148dfa84c4
commit
209f717fa8
|
@ -101,6 +101,14 @@ public class GnollTrickster extends Gnoll {
|
||||||
return super.getCloser( target );
|
return super.getCloser( target );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void aggro(Char ch) {
|
||||||
|
//cannot be aggroed to something it can't see
|
||||||
|
if (fieldOfView == null || fieldOfView[ch.pos]) {
|
||||||
|
super.aggro(ch);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Item createLoot() {
|
protected Item createLoot() {
|
||||||
|
|
|
@ -94,6 +94,14 @@ public class Scorpio extends Mob {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void aggro(Char ch) {
|
||||||
|
//cannot be aggroed to something it can't see
|
||||||
|
if (fieldOfView == null || fieldOfView[ch.pos]) {
|
||||||
|
super.aggro(ch);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Item createLoot() {
|
protected Item createLoot() {
|
||||||
Class<?extends Potion> loot;
|
Class<?extends Potion> loot;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user