Fix property types. Auras have been merged into Spells a while ago.

This commit is contained in:
Relintai 2023-06-02 12:10:20 +02:00
parent d8bd83dbd5
commit de9da3151f
2 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ void AuraData::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_aura"), &AuraData::get_aura); ClassDB::bind_method(D_METHOD("get_aura"), &AuraData::get_aura);
ClassDB::bind_method(D_METHOD("set_aura", "value"), &AuraData::set_aura); ClassDB::bind_method(D_METHOD("set_aura", "value"), &AuraData::set_aura);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "aura", PROPERTY_HINT_RESOURCE_TYPE, "Aura"), "set_aura", "get_aura"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "aura", PROPERTY_HINT_RESOURCE_TYPE, "Spell"), "set_aura", "get_aura");
ClassDB::bind_method(D_METHOD("refresh", "remaining"), &AuraData::refresh); ClassDB::bind_method(D_METHOD("refresh", "remaining"), &AuraData::refresh);

View File

@ -268,7 +268,7 @@ void SpellDamageInfo::_bind_methods() {
ClassDB::bind_method(D_METHOD("aura_source_get"), &SpellDamageInfo::aura_source_get); ClassDB::bind_method(D_METHOD("aura_source_get"), &SpellDamageInfo::aura_source_get);
ClassDB::bind_method(D_METHOD("aura_source_set", "value"), &SpellDamageInfo::aura_source_set); ClassDB::bind_method(D_METHOD("aura_source_set", "value"), &SpellDamageInfo::aura_source_set);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "aura_source", PROPERTY_HINT_RESOURCE_TYPE, "Aura"), "aura_source_set", "aura_source_get"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "aura_source", PROPERTY_HINT_RESOURCE_TYPE, "Spell"), "aura_source_set", "aura_source_get");
ClassDB::bind_method(D_METHOD("source_get_id"), &SpellDamageInfo::source_get_id); ClassDB::bind_method(D_METHOD("source_get_id"), &SpellDamageInfo::source_get_id);
ClassDB::bind_method(D_METHOD("source_set_id", "value"), &SpellDamageInfo::source_set_id); ClassDB::bind_method(D_METHOD("source_set_id", "value"), &SpellDamageInfo::source_set_id);