mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-07-18 03:50:49 +00:00
feat: armorstand from decomp
This commit is contained in:
@@ -111,6 +111,9 @@ bool DamageSource::isBypassInvul()
|
||||
return _bypassInvul;
|
||||
}
|
||||
|
||||
bool DamageSource::isBypassMagic() {
|
||||
return _bypassInvul;
|
||||
}
|
||||
|
||||
//DamageSource::DamageSource(const wstring &msgId)
|
||||
DamageSource::DamageSource(ChatPacket::EChatPacketMessage msgId, ChatPacket::EChatPacketMessage msgWithItemId)
|
||||
@@ -214,6 +217,33 @@ bool DamageSource::isFire()
|
||||
{
|
||||
return isFireSource;
|
||||
}
|
||||
bool DamageSource::isFireProjectile() {
|
||||
return _isProjectile;
|
||||
}
|
||||
DamageSource* DamageSource::setIsFireProjectile() {
|
||||
_isProjectile = true;
|
||||
return this;
|
||||
}
|
||||
bool DamageSource::isCreativePlayer() const
|
||||
{
|
||||
|
||||
shared_ptr<Entity> entity = const_cast<DamageSource*>(this)->getEntity();
|
||||
|
||||
if (entity != nullptr)
|
||||
{
|
||||
|
||||
shared_ptr<Player> player = dynamic_pointer_cast<Player>(entity);
|
||||
|
||||
if (player != nullptr)
|
||||
{
|
||||
|
||||
return player->abilities.instabuild;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
ChatPacket::EChatPacketMessage DamageSource::getMsgId()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user