[Bug Fix] Fix Elemental Illusion spells not using proper texture. (#1691)

This commit is contained in:
Kinglykrab 2021-11-07 17:21:04 -05:00 committed by GitHub
parent 062fb73f03
commit 30fdb18945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1446,6 +1446,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
gender_id gender_id
); );
if (spell.base_value[i] != RACE_ELEMENTAL_75) {
if (spell.max_value[i] > 0) { if (spell.max_value[i] > 0) {
if (spell.limit_value[i] == 0) { if (spell.limit_value[i] == 0) {
SendIllusionPacket( SendIllusionPacket(
@ -1477,6 +1478,14 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
spell.max_value[i] spell.max_value[i]
); );
} }
} else {
SendIllusionPacket(
spell.base_value[i],
gender_id,
spell.limit_value[i]
);
}
SendAppearancePacket(AT_Size, race_size); SendAppearancePacket(AT_Size, race_size);
} }