Вход для пользователей

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Фиксов в ядро
Дата: Вторник, 07.09.2010, 19:49 | Сообщение # 1
Аватар

Группа: Crush BAN
Сообщений: 64
Награды: 4
Репутация: 9  
 
Spell::EffectQuestComplete Автор-KiriX

Code
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp  
index 096dae3..70ea439 100644  
--- a/src/game/SpellEffects.cpp  
+++ b/src/game/SpellEffects.cpp  
@@ -7182,10 +7182,10 @@ void Spell::EffectReputation(SpellEffectIndex eff_idx)  
       
    void Spell::EffectQuestComplete(SpellEffectIndex eff_idx)  
    {  
-    if(m_caster->GetTypeId() != TYPEID_PLAYER)  
+    if(unitTarget->GetTypeId() != TYPEID_PLAYER)  
            return;  
       
-    Player *_player = (Player*)m_caster;  
+    Player *_player = (Player*)unitTarget;  
       
        uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];  
        _player->AreaExploredOrEventHappens(quest_id);

Arena time limit (27min)(переписанная мной по ласт реву)

Code
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp  
  @@ -1387,6 +1387,12 @@ void BattleGround::UpdatePlayerScore
              }
  break;
  //used only in EY, but in MSG_PVP_LOG_DATA opcode
+        case SCORE_DAMAGE_DONE:                             // Damage Done
+            itr->second->DamageDone += value;
+            break;
+        case SCORE_HEALING_DONE:                            // Healing Done
+            itr->second->HealingDone += value;
+            break;
@@ -1406,11 +1412,7 @@ uint32 BattleGround::GetPlayerScore
-        case SCORE_DAMAGE_DONE:                             // Damage Done
-            return itr->second->DamageDone;
-        case SCORE_HEALING_DONE:                            // Healing Done
-            return itr->second->HealingDone;
-        default:
+         default:


 
  • Страница 1 из 1
  • 1
Поиск:
Статистика Форума

  • [05:43 Готовый сервер 4.0.6 ... 11.12.2023]

  • [23:30 Arcanum Core (3.3.5а)... 16.11.2023]

  • [12:37 delete 02.03.2020]

  • [12:37 Ищу пост ГМ-а 02.03.2020]

  • [12:37 RastaWoW 3.3.5a (Набо... 02.03.2020]

  • [12:37 Набор команды 02.03.2020]

  • [00:34 AMD FUN SERVER - Worl... 03.07.2019]

  • [00:34 Продам private сборку... 03.07.2019]

  • [00:34 НПС для покупки опыта... 03.07.2019]

  • [00:34 WoW-TRONE 03.07.2019]

  • [21:00 [Продам] Фуловые чары... 13.03.2015]

  • [18:47 Продам приват сборку ... 04.03.2015]

  • [20:54 ВСЕ приват сборки от ... 01.03.2015]

  • [20:52 QuantumCore Server 3.... 04.02.2015]

  • [21:07 GAMESV STUDIO | ... 02.01.2015]

  • [16:36 Готовый сервер wow 4.... 04.10.2014]

  • [16:51 Скупаю чаров! 30.08.2014]

  • [19:18 Готовый сервер 4.0.6 17.08.2013]

  • [18:47 [HELP]Квесты 16.08.2013]

  • [18:46 [ArcEmu] Дополнительн... 16.08.2013]


  • Карта Сайта ||||| Карта Форума|||