Pelf

Pelf engineering 1 patch

Feb 29th, 2012
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.72 KB | None | 0 0
  1. diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
  2. index f768541..3b93680 100644
  3. --- a/src/server/game/Spells/SpellEffects.cpp
  4. +++ b/src/server/game/Spells/SpellEffects.cpp
  5. @@ -1404,6 +1404,40 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
  6.                      m_caster->Kill(unitTarget, false);
  7.                      m_caster->ToPlayer()->KilledMonsterCredit(unitTarget->GetEntry(), unitTarget->GetGUID());
  8.                  }
  9. +               case 82626: //grounded plasma shield, engineering
  10. +               {
  11. +                   if (m_caster && m_caster->GetTypeId() == TYPEID_PLAYER)
  12. +                       m_caster->CastSpell(m_caster, 82627, false);
  13. +                   return;
  14. +               }
  15. +               case 84348: //invisibility field, engineering  
  16. +               {
  17. +                   if (m_caster && m_caster->GetTypeId() == TYPEID_PLAYER)
  18. +                       m_caster->CastSpell(m_caster, 82820, false);
  19. +                   return;
  20. +               }
  21. +               case 82174: //synapse strings, engineering
  22. +               {
  23. +                   if (m_caster && m_caster->GetTypeId() == TYPEID_PLAYER)
  24. +                   {
  25. +                       float _str = m_caster->GetStat(STAT_STRENGTH);
  26. +                       float _agi = m_caster->GetStat(STAT_AGILITY);
  27. +                       float _int = m_caster->GetStat(STAT_INTELLECT);
  28. +                       if (_str > _agi && _str > _int)
  29. +                       {
  30. +                           m_caster->CastSpell(m_caster, 96229, false);
  31. +                       }
  32. +                       else if (_agi > _str && _agi > _int)
  33. +                       {
  34. +                           m_caster->CastSpell(m_caster, 96228, false);
  35. +                       }
  36. +                       else if (_int > _str && _int > _agi)
  37. +                       {
  38. +                           m_caster->CastSpell(m_caster, 96230, false);
  39. +                       }
  40. +                   }
  41. +                   return;
  42. +               }
  43.                  case 93072:                                 // Get Our Boys Back
  44.                  {
  45.                      if(Creature* Injured = m_caster->FindNearestCreature(50047, 3.0f, true))
Advertisement
Add Comment
Please, Sign In to add comment