diff options
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r-- | src/being/actorsprite.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 7007d52aa..d5527f161 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -384,13 +384,15 @@ void ActorSprite::handleStatusEffect(const StatusEffect *const effect, if (effectId >= 0) { + Particle *particle = nullptr; if (start == IsStart_true) { - Particle *const particle = effect->getParticle(); - mStatusParticleEffects.setLocally(effectId, particle); + particle = effect->getStartParticle(); } // +++ here also need enable permanent status effects, // need new field in StatusEffect + if (particle) + mStatusParticleEffects.setLocally(effectId, particle); } } |