Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # HG changeset patch
  2. # User joshwhedon
  3. # Date 1290119681 0
  4. # Branch trunk
  5. # Node ID f3d980b2a2c4f1e7fe98afd519f1dc17adcd0a88
  6. # Parent 82c3588508e0ff0e35d0d7bf6641bc26a5b01fed
  7. Snake Trap snakes shouldn't daze.
  8. Mechanic vehicles shouldn't be dazed.
  9.  
  10. diff -r 82c3588508e0 -r f3d980b2a2c4 src/server/game/Entities/Unit/Unit.cpp
  11. --- a/src/server/game/Entities/Unit/Unit.cpp Thu Nov 18 15:57:23 2010 +0100
  12. +++ b/src/server/game/Entities/Unit/Unit.cpp Thu Nov 18 22:34:41 2010 +0000
  13. @@ -1371,6 +1371,14 @@
  14. if (pVictim->getLevel() < 30)
  15. Probability = 0.65f * pVictim->getLevel() + 0.5f;
  16.  
  17. + // Snake Trap shouldn't daze
  18. + if (GetEntry() == 19833 || GetEntry() == 19921)
  19. + Probability = 0.0f;
  20. +
  21. + // Mechanic vehicles shouldn't be dazed
  22. + if (pVictim->GetCreatureType() == CREATURE_TYPE_MECHANICAL && pVictim->GetTypeId() == TYPEID_UNIT && pVictim->IsVehicle())
  23. + Probability = 0.0f;
  24. +
  25. uint32 VictimDefense=pVictim->GetDefenseSkillValue();
  26. uint32 AttackerMeleeSkill=GetUnitMeleeSkill();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement