diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp index 9611d0e..5d4d89b 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -244,7 +244,7 @@ bool PlayerSystem::receive(const UseItemEvent& uie) sprite->addSpriteSegment(SpriteData(tex->sprite), 0); auto dim = HLINES(sprite->getSpriteSize()); e.assign<Solid>(dim.x, dim.y); - e.assign<Hit>(uie.attack->power, false); + e.assign<Hit>(uie.attack); if (uie.attack->effect.size() > 0) e.component<Hit>()->effect = uie.attack->effect; } |