Commit graph

253 commits

Author SHA1 Message Date
Trazom
eedc10d46f [7703] Implement heal/damage total counters and related BG achievments.
* ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE
* ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 23:56:15 +04:00
Trazom
9136354e7f [7702] Implement some damage/healing achievement statistics.
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_DEALT
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HIT_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEAL_CASTED
* ACHIEVEMENT_CRITERIA_TYPE_TOTAL_HEALING_RECEIVED
* ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALING_RECEIVED

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 22:04:08 +04:00
Trazom
7c0201f834 [7701] Move explicit healing repeating code to DealHeal functions.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-23 04:54:57 +04:00
VladimirMangos
d910610600 [7697] Interrupt casting at enter to evade mode. 2009-04-22 18:05:59 +04:00
AlexDereka
cc83cac0aa [7696] Fixed compile warnings 2009-04-22 17:03:34 +04:00
NoFantasy
4fd4cc31d1 [7695] Fixed typo & -> &&
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-22 15:35:46 +04:00
VladimirMangos
fc0e1ecdf1 [7690] Move GetCreature/GetGameobject to class Map.
* This let get objects at map without reference to player or another object.
* Simplify future implementation for per-map storage for like objects
2009-04-20 19:08:13 +04:00
Lightguard
f97735f519 [7686] Implement aura SPELL_AURA_ADD_CASTER_HIT_TRIGGER (111).
Fixed bug with triggering SPELL_AURA_SPELL_MAGNET at non-magic casts (special weapon attacks).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-19 00:42:16 +04:00
Lightguard
c62543fa52 [7670] Revert "Not apply/remove passive auras on aura state change (not need)"
This reverts commit d5f6eefd1bb3c64797e54d19cc58ccc8c4cf8a4f.

Some 3.0.x talents not work without this like 44441

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-14 14:57:57 +04:00
VladimirMangos
d85e95295d [7668] Cleanup In CreatureAI function descriptions and AttackStart/AttackedBy use.
* Use AI::AttackStart calls only in case explicit request creature attack from core or AI code "attack it if can".
  Like taunt, pet handler attack command.
* Use AI::AttackedBy for reaction at hostile action "do something at hostile action"
  Like non-dot damage, swing, negative spell landing, or fade fear/etc.
  And provided by default call AttackStart if no current target.

This fix some problems, like:
* Civilian will react propertly at attack by another creature (not pet or player).
* Will not cases (at least triggred by core) when attack target start run to attacker before any real hostile action apply.
2009-04-14 10:14:10 +04:00
VladimirMangos
56350b32ed [7663] Fixed crash at interrupting channeled spell. Cleanup spell interrupt code. 2009-04-13 10:48:26 +04:00
VladimirMangos
0e1997f746 [7657] Implement function for access to gameobject owned by unit and created by some spell. 2009-04-13 01:07:21 +04:00
VladimirMangos
eb198f8239 [7645] Fixed problems wit temporary unsummoned pets and cleanup code.
* Save temporary unsummoned pet to current slot (instead non_in_slot mode) and
  prevent save as current pet summoned while temporay unsummon (arena)
* Prevent overwrite temporary summoned pet data
* At player loading set temporary unsummoned pet data instead pet loading
  if pet expected to be temporary unsummoned in current player state (loading in taxi flight/etc)
* Restore proper pet at arena leave and unsummon in arena summoned.
2009-04-11 08:46:48 +04:00
tomrus88
412a8029ea Removed some outdated comments 2009-04-08 14:54:45 +04:00
Tassader
45438a602f [7635] Spell hit chance cap change to 100% in 3.0.x
(cherry picked from commit cd17dac8d43312751123ee689c314d510b05c6e8)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-08 06:06:44 +04:00
Lightguard
ca5a3d95ca [7629] Update paladin talent 25988 work to 3.0.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-07 06:07:42 +04:00
False.Genesis
e4daaaedb1 [7610] Fixed problems with Aura::HandleMosPossess for players 2009-04-04 01:21:59 +04:00
freghar
0fc68c5e1e [7609] Trailing whitespace cleaning
Here we are again! "git diff --check" !!

Signed-off-by: freghar <compmancz@gmail.com>
2009-04-03 16:46:39 +02:00
arrai
1ec8e1f24d [7597] Fixed crash at stealing single target auras (54648 for example) 2009-04-01 23:11:25 +02:00
VladimirMangos
f38283eba6 [7583] Use instead BasePoints+1 hardcoded formula more correct BasePoint+BaseDice hide in special helper function. 2009-03-29 22:46:32 +04:00
arrai
5dd3ce31bc [7576] Fixed spell range check for spells with minimal distances 2009-03-28 22:27:39 +01:00
pasdVn
910d4c8155 [7569] Fix typo in spell damage/healing default bonus for staked spell
Signed-off-by: pasdVn <pasdVn@getmangos.com>
2009-03-28 15:16:51 +03:00
pasdVn
fa63fc96f8 Fix typo in spell block chance calc
Signed-off-by: pasdVn <pasdVn@getmangos.com>
2009-03-28 13:33:01 +03:00
VladimirMangos
c33eff13f4 [7540] Move most reputation/force faction reaction code to new ReputationMgr. 2009-03-26 11:28:56 +03:00
VladimirMangos
df9caf58cd [7538] Hide some implementation details for reputation/forced faction reaction. 2009-03-25 21:28:04 +03:00
VladimirMangos
fa098236af [7526] Use NULL for pointers instead 0 2009-03-23 17:37:23 +03:00
`win
0f6b2ab9ae [7523] Fixed: players will now drop flag in battleground if they cast immunity buff on themselves.
TODO: players who carry flag in bg are imune to immunity buffs casted by friendly players. (todo added to code).
Bug: if paladin casts Hand of protection on flag carrier - flag will be dropped, but he should get "target is immune" message.
Fixed: Do not call Battleground::Update for battleground template objects.
Fixed: Do not allow immune player to click on object in battleground (not sure if this is correct in all cases).

Signed-off-by: Triply <triply@getmangos.com>
2009-03-23 10:16:44 +01:00
AlexDereka
8a5e4706bc [7506] Remove dual ERROR in logs 2009-03-21 11:47:57 +03:00
Lightguard
0bb15c0593 [7504] Implement glyph item 42397 bonus work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-21 01:25:43 +03:00
Lightguard
610a040240 [7500] Not allow stacking some auras at target from different casters.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-20 00:14:59 +03:00
VladimirMangos
4bc5bf3877 [7497] Remove auras from GO owner at remove connected owned th this spell GO. 2009-03-19 21:58:31 +03:00
VladimirMangos
c99a849eb9 [7475] Move Player::IsInFeralForm to Unit::IsInFeralForm 2009-03-16 23:22:52 +03:00
VladimirMangos
5d6cb5fe80 [7468] Convert pet cast check code to use SpellCastResult and finaly fix SPELL_CAST_OK value (255 custom value now) 2009-03-16 15:40:43 +03:00
VladimirMangos
0e987bf59e [7467] Use SpellCastResult and replace CanCast by CheckCast.
Note: proper way to check: if(spell->CheckCast(...)==SPELL_CAST_OK)
2009-03-16 13:17:44 +03:00
=Neo2003
9b1216f21c [7458] Not reset/set some data at attack target switch that expected do at any target lost.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-14 23:40:57 +03:00
VladimirMangos
3a5d59c0c7 [7450] Fixes and improvements in TARGET_BEHIND_VICTIM, SPELL_EFFECT_JUMP2, SPELL_EFFECT_TELEPORT_UNITS work.
* Move near teleport code for player/creature in Unit::NearTeleportTo
* Allow correctly seelct target and end point orientation for script casted spells with TARGET_BEHIND_VICTIM
* Replace use BuildTeleportAckMsg by BuildHeartBeatMsg for creature teleports. BuildTeleportAckMsg
  set active mover for targeted player to affected creature and "freeze" player.
2009-03-13 17:08:10 +03:00
DiSlord
2240fc49aa [7430] Fix warror ability heal amount
Signed-off-by: DiSlord <DiSlord@nomail.ru>
2009-03-09 23:01:28 +03:00
balrok
0babfec043 [7424] Codestyle: removed not needed \n in log output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-09 14:20:10 +03:00
VladimirMangos
4dad8f40d0 [7419] Fixed some type convertion warnings. 2009-03-09 08:23:25 +03:00
VladimirMangos
44f3c15710 Revert "Flat Modifier for Glyph of Spiritual Attunement"
This reverts commit 332371c284a6513693786ab6c3fa933570953159.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

unexpectadly cpushed, sorry.
2009-03-09 06:43:46 +03:00
multiplexer
ba1cfbf121 Flat Modifier for Glyph of Spiritual Attunement 2009-03-09 03:39:54 +03:00
VladimirMangos
c18d20782b Implement some death related achievements
* ACHIEVEMENT_CRITERIA_TYPE_DEATH (normal and arena types counting)
* ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON (instance types by man limit counting)
  Note: need fixed for cases when max allowed players different from recommended count.
* ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM (environment damage sources by types)

Fixed:
* ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER
   - self-kill counting as death from players
   - same team player kill in opposition kills counter.

Also cleanup in Player::EnvironmentalDamage use DBCStructure.h comment.
2009-03-06 04:26:48 +03:00
pasdVn
0d96837d48 [7375] Typos in dynamic object registering and deleting for owner.
This let have more then one persistent aura in same time.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-03 23:53:28 +03:00
VladimirMangos
03273a49da factionTemplate->faction can be 0, add appropriate checks to prevent crashes and unexpected work. 2009-03-03 17:13:11 +03:00
VladimirMangos
de51363151 [7365] Implement potion in combat delay proper work.
Original patch provided by miranda.conrado.
2009-03-01 11:33:08 +03:00
VladimirMangos
2b10d8fd71 [7364] Really implenent server-side anti-cheating cooldown check for spells with SPELL_ATTR_DISABLED_WHILE_ACTIVE.
Move apply cooldown for like spells to aura apply (GO registering for owner in GO summon spell case)
Store "infinity" cooldown for like spells, ignore it at save and reapply it at aura loading.

Note: one problem still exist for like spells: at loading/far teleport spell icon lost diabled state at client.
      Need sedn some unknown data in SendInitialPacketsBeforeAddToMap or SendInitialPacketsAfterAddToMap for restore it state.
2009-03-01 10:21:47 +03:00
VladimirMangos
ed6123c804 [7363] Propertly set cooldown at server side for category spells at cooldown event send to client.
Also support item dependent cooldown set propetly at cooldown event send to client.
Last will used in follow potion cooldown delay in combat patch.
2009-03-01 10:14:45 +03:00
VladimirMangos
2b9eeb782e [7362] Use IN_MILISECONDS where appropriate, other cleanups. 2009-03-01 05:22:56 +03:00
Triply
3560d9de54 [7351] Fixed removing normal horde groups from queue.
Fixed Reflective shield - patch provided by Rastik. Thx

Signed-off-by: Triply <triply@getmangos.com>
2009-02-27 11:08:57 +01:00
VladimirMangos
1349d36270 [7333] Refactoring DestinationHolder/Traveler/Unit::SendMonsterMoveWithSpeed code.
* Move common code in appropriate functions.
* Correct select speed and 2D/3D distance for creature/player walk/fly
2009-02-25 07:03:45 +03:00