forked from 2009Scape/Server
Fixed a regression causing broken NPC range and magic attacks
This commit is contained in:
parent
544487218a
commit
d4e62c0e96
1 changed files with 2 additions and 1 deletions
|
|
@ -232,7 +232,8 @@ public class NPC extends Entity {
|
|||
}
|
||||
behavior.onCreation(this);
|
||||
// FIXME: hack around MovementPulse's constructor getting run while behavior is null when behavior is set between NPC constructor and init.
|
||||
getProperties().setCombatPulse(new CombatPulse(this));
|
||||
// FIXME: Commented out as a fix. most npcs were not being able to attack with range/magic due to setting the combat pulse.
|
||||
// getProperties().setCombatPulse(new CombatPulse(this));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue