This commit is contained in:
parent
994cbb07ca
commit
3d04467ef8
3 changed files with 13 additions and 10 deletions
Binary file not shown.
Binary file not shown.
|
@ -765,6 +765,8 @@ void CNpcSubSharkEnemy::collidedWith(CThing *_thisThing)
|
|||
ATTACK_STATE playerState = player->getAttackState();
|
||||
|
||||
if(playerState==ATTACK_STATE__NONE)
|
||||
{
|
||||
if ( !player->isRecoveringFromHit() )
|
||||
{
|
||||
CPlayer *player = GameScene.getPlayer();
|
||||
|
||||
|
@ -780,6 +782,7 @@ void CNpcSubSharkEnemy::collidedWith(CThing *_thisThing)
|
|||
player->setMode( PLAYER_MODE_SWALLOW );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ( m_invulnerableTimer <= 0 )
|
||||
{
|
||||
// player is attacking, respond appropriately
|
||||
|
|
Loading…
Add table
Reference in a new issue