1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-28 20:27:46 +00:00

remove initial auto attack wait time for players

This commit is contained in:
collett 2020-01-14 20:27:10 +09:00
parent 5b05900455
commit 651e8e2d3e
2 changed files with 1 additions and 1 deletions

View file

@ -44,6 +44,7 @@ Sapphire::Entity::Chara::Chara( ObjKind type, FrameworkPtr pFw ) :
m_lastTickTime = 0; m_lastTickTime = 0;
m_lastUpdate = 0; m_lastUpdate = 0;
m_lastAttack = Util::getTimeMs();
m_bonusStats.fill( 0 ); m_bonusStats.fill( 0 );

View file

@ -306,7 +306,6 @@ void Sapphire::Entity::Player::calculateStats()
void Sapphire::Entity::Player::setAutoattack( bool mode ) void Sapphire::Entity::Player::setAutoattack( bool mode )
{ {
m_bAutoattack = mode; m_bAutoattack = mode;
m_lastAttack = Util::getTimeMs();
} }
bool Sapphire::Entity::Player::isAutoattackOn() const bool Sapphire::Entity::Player::isAutoattackOn() const