diff --git a/data/aura_group.cpp b/data/aura_group.cpp index cf1ee92..6260036 100644 --- a/data/aura_group.cpp +++ b/data/aura_group.cpp @@ -4,5 +4,5 @@ AuraGroup::AuraGroup() { } void AuraGroup::_bind_methods() { - ADD_PROPERTY(PropertyInfo(Variant::STRING, "text_description"), "set_text_description", "get_text_description"); + ADD_PROPERTY(PropertyInfo(Variant::STRING, "text_description"), "set_name", "get_name"); } diff --git a/entities/entity.cpp b/entities/entity.cpp index c0f2af0..0ba29d2 100644 --- a/entities/entity.cpp +++ b/entities/entity.cpp @@ -2480,10 +2480,10 @@ Ref Entity::sget_aura_with_group_by(Entity *caster, Ref aur } } - return Ref(NULL); + return Ref(); } Ref Entity::sget_aura_with_group_by_bind(Node *caster, Ref aura_group) { - if (!caster) { + if (!ObjectDB::instance_validate(caster)) { return Ref(); } @@ -5053,6 +5053,7 @@ void Entity::_bind_methods() { ClassDB::bind_method(D_METHOD("sget_aura_count"), &Entity::sget_aura_count); ClassDB::bind_method(D_METHOD("sget_aura", "index"), &Entity::sget_aura); ClassDB::bind_method(D_METHOD("sget_aura_by", "caster", "aura_id"), &Entity::sget_aura_by_bind); + ClassDB::bind_method(D_METHOD("sget_aura_with_group_by", "caster", "aura_group"), &Entity::sget_aura_with_group_by_bind); ClassDB::bind_method(D_METHOD("cget_aura_count"), &Entity::cget_aura_count); ClassDB::bind_method(D_METHOD("cget_aura", "index"), &Entity::cget_aura);