[12018] [patch][spell=51519]Death Knight Initiate Visual
Вложений: 1
Спелл 51519 должен менять модель в зависимости от расы и пола.
Патч во вложении. Дублирую: Код:
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp |
Small note: with this implemented we need to remove the hacks from the sd2 scripts.
I assume you tested without them? |
Я тестировал на чистом ядре, без СД2.
I tested it on a clean kernel without SD2. |
Actualy this patch seems to be wrong:
Код:
// equal to player Race field, but creature does not have race |
Если спелл кастует игрок, то меняем условие
Код:
if (!unitTarget) Код:
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) |
Цитата:
|
maybe it was unclear in the beginning if npcs can have a race.
and it uses UNIT_FIELD_BYTES_1(0), so it is with some reason on unit-level. About this patch. I see no other way then to use the way sd2 handles this (by display-id) - which could be ported to mangos-code. This would actually be nicer as it would then be a script-effect. But move something rather ugly to mangos. Hence I think the ugly code is better left in sd2 even if it must be considered a hack there :( |
Код:
struct CreatureDisplayInfoExtraEntry [Added] In fact, in DBCStores.h exist special function for this: Код:
MANGOS_DLL_SPEC uint32 GetCreatureModelRace(uint32 model_id); |
In [12018] Thank you ;)
|
Текущее время: 21:41. Часовой пояс GMT +3. |
ru-mangos.ru - Русское сообщество MaNGOS