Skip to content

Commit

Permalink
Update applyEffect for changes in ActivateRegenEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
e-aakash committed Jul 2, 2019
1 parent 93f9798 commit c114a65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ else if (!modifiersFound || !effectModifyEvent.getHasInfDuration()) {
public void applyEffect(EntityRef instigator, EntityRef entity, String id, float magnitude, long duration) {
//applyEffect(instigator, entity, magnitude, duration);
if (magnitude != 0) {
entity.send(new ActivateRegenEvent(id, (int) magnitude, ((float) duration) / 1000));
entity.send(new ActivateRegenEvent(id, magnitude, ((float) duration) / 1000));
}
}
}

0 comments on commit c114a65

Please sign in to comment.