diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-10-12 08:32:21 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-10-12 08:32:21 -0400 |
commit | b709a392436d4ed17e214cd9e302ddbd23d71c21 (patch) | |
tree | 9ad8dd18d26ab6aa907b182170c08f26bea10585 /src/player.cpp | |
parent | dbf47c4e8e7731519bec212419f70e08b139be0f (diff) |
more lua scripting
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; } |