mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 18:11:59 +00:00
fix: Implement missing critical hit sound (#1141)
* Fix * Crit Sound Now Plays On Death * Revert BuildVer.h --------- Co-authored-by: Loki <lokio.casebstv@gmail.com>
This commit is contained in:
@@ -124,6 +124,7 @@ DamageSource::DamageSource(ChatPacket::EChatPacketMessage msgId, ChatPacket::ECh
|
||||
_isProjectile = false;
|
||||
_isMagic = false;
|
||||
_isExplosion = false;
|
||||
_isCritical = false;
|
||||
|
||||
//this->msgId = msgId;
|
||||
m_msgId = msgId;
|
||||
@@ -153,7 +154,15 @@ DamageSource *DamageSource::bypassInvul()
|
||||
_bypassInvul = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
bool DamageSource::isCritical()
|
||||
{
|
||||
return _isCritical;
|
||||
}
|
||||
DamageSource *DamageSource::setIsCritical()
|
||||
{
|
||||
_isCritical = true;
|
||||
return this;
|
||||
}
|
||||
DamageSource *DamageSource::setIsFire()
|
||||
{
|
||||
isFireSource = true;
|
||||
|
||||
Reference in New Issue
Block a user