|
MaNGOS 0.12 (2.4.3) Любителям олд-скула =) Всё для клиента 2.4.3 |
|
Опции темы | Поиск в этой теме | Опции просмотра |
27.04.2010, 14:42 | #1 |
Пользователь
Регистрация: 05.04.2010
Сообщений: 53
Сказал(а) спасибо: 4
Поблагодарили 24 раз(а) в 15 сообщениях
|
[fix bug] Deserter
Код:
@@ -915,11 +915,13 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target) SpellMissInfo missInfo = target->missCondition; // Need init unitTarget by default unit (can changed in code on reflect) // Or on missInfo!=SPELL_MISS_NONE unitTarget undefined (but need in trigger subsystem) unitTarget = unit; - if (missInfo==SPELL_MISS_NONE) // In case spell hit target, do all effect on that target + if (m_spellInfo->Id == 26013) // kia cast deserter always + DoSpellHitOnUnit(unit, mask); + else if (missInfo==SPELL_MISS_NONE) // In case spell hit target, do all effect on that target DoSpellHitOnUnit(unit, mask); else if (missInfo == SPELL_MISS_REFLECT) // In case spell reflect from target, do all effect on caster (if hit) { if (target->reflectResult == SPELL_MISS_NONE) // If reflected spell hit caster -> do all effect on him DoSpellHitOnUnit(m_caster, mask); |