Skip to content

Commit b1dfe87

Browse files
committed
gamestate: Animate effect application.
1 parent 213f510 commit b1dfe87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libopenage/gamestate/system/apply_effect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "gamestate/component/types.h"
1616
#include "gamestate/game_entity.h"
1717
#include "gamestate/game_state.h"
18+
#include "gamestate/system/property.h"
1819

1920

2021
namespace openage::gamestate::system {
@@ -108,6 +109,10 @@ const time::time_t ApplyEffect::apply_effect(const std::shared_ptr<gamestate::Ga
108109
}
109110
}
110111

112+
// properties
113+
auto ability = effects_component->get_ability();
114+
handle_animated(effector, ability, start_time);
115+
111116
return total_time;
112117
}
113118

0 commit comments

Comments
 (0)