mirror of https://github.com/AxioDL/metaforce.git
Fix Thardus not flinching when a rock is destroyed
This commit is contained in:
parent
3bb05c0ee5
commit
88b184536c
|
@ -989,6 +989,7 @@ void CThardus::ProjectileAttack(CStateManager& mgr, EStateMsg msg, float arg) {
|
||||||
|
|
||||||
void CThardus::Flinch(CStateManager& mgr, EStateMsg msg, float arg) {
|
void CThardus::Flinch(CStateManager& mgr, EStateMsg msg, float arg) {
|
||||||
if (msg == EStateMsg::Activate) {
|
if (msg == EStateMsg::Activate) {
|
||||||
|
x5ec_ = 0;
|
||||||
for (TUniqueId uid : x798_) {
|
for (TUniqueId uid : x798_) {
|
||||||
if (auto* rock = CPatterned::CastTo<CThardusRockProjectile>(mgr.ObjectById(uid))) {
|
if (auto* rock = CPatterned::CastTo<CThardusRockProjectile>(mgr.ObjectById(uid))) {
|
||||||
rock->sub80203d58();
|
rock->sub80203d58();
|
||||||
|
|
Loading…
Reference in New Issue