[Bug Fix] Fix Illusion Fade Texture Bug (#4673)

* [Bug Fix] Fix Illusion Fade Texture Bug

* Update spell_effects.cpp
This commit is contained in:
Alex King 2025-02-13 20:57:31 -05:00 committed by GitHub
parent dfb089b0c1
commit e948a6815c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4340,9 +4340,14 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
case SE_IllusionCopy:
case SE_Illusion:
{
SendIllusionPacket(AppearanceStruct{});
// The GetSize below works because the above setting race to zero sets size back.
SendAppearancePacket(AppearanceType::Size, GetSize());
SendIllusionPacket(
AppearanceStruct{
.gender_id = GetBaseGender(),
.race_id = GetBaseRace(),
.size = GetDefaultRaceSize(GetBaseRace(), GetBaseGender()),
.texture = 0
}
);
for (int x = EQ::textures::textureBegin; x <= EQ::textures::LastTintableTexture; x++) {
SendWearChange(x);