From ce2c43f702f40c3040308e65bda8f6ae71244a7b Mon Sep 17 00:00:00 2001 From: Brian Nelson <41605807+nelsonsbrian@users.noreply.github.com> Date: Tue, 28 Apr 2020 18:09:37 -0700 Subject: [PATCH] Add the effect variable to the emit that is being removed to player Don't really see a reason not to, but my use case is to listen for the 'effectRemoved' on the player and update my websocket client with that specific effect being removed. This would be the cleanest way to do it. --- src/EffectList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EffectList.js b/src/EffectList.js index fc6920fa..e986cc45 100644 --- a/src/EffectList.js +++ b/src/EffectList.js @@ -153,7 +153,7 @@ class EffectList { /** * @event Character#effectRemoved */ - this.target.emit('effectRemoved'); + this.target.emit('effectRemoved', effect); } /**