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:
parent
5b05900455
commit
651e8e2d3e
2 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue