v1.0.1: fixed scorpios and trickster not acting when attacked out of FOV
This commit is contained in:
parent
148dfa84c4
commit
209f717fa8
|
@ -102,6 +102,14 @@ public class GnollTrickster extends Gnoll {
|
|||
}
|
||||
}
|
||||
|
||||
@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
|
||||
protected Item createLoot() {
|
||||
MissileWeapon drop = (MissileWeapon)super.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
|
||||
protected Item createLoot() {
|
||||
Class<?extends Potion> loot;
|
||||
|
|
Loading…
Reference in New Issue
Block a user