Commit graph

1601 commits

Author SHA1 Message Date
Mordred
5020fcd3f1 [7671] Wrong type casts not fixed in [7667].
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-15 02:17:47 +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
2289ee6b30 [7669] Some lost commented code patch for currencies trading item move to empty slot.
In fact it not change anything except GM item created trade:
no currency items currently that not bind at picked up.
2009-04-14 13:59:37 +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
69fb9736cc [7667] Add to CreatureAI field pointing to creature itself. Use it instead diff. fields in subclases.
Also send pointer to AI constructors ans mark constructors as explicit.

This changes allow move now some generic often used AI code to CreatureAI helper functions.
2009-04-14 06:52:16 +04:00
VladimirMangos
721e005b84 [7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName.
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.
2009-04-14 02:28:45 +04:00
Splash
1ebf1a5ba4 [7665] Include achievement data to pdumps.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-14 01:04:19 +04:00
Lightguard
0aaf266513 [7664] Implement work of rogue talent 58426.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix problems with talent 58426 and 31223 work in case
* fast stealth reapply after stealth lost
* second stealth aura apply while another active.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 12:44:48 +04:00
VladimirMangos
56350b32ed [7663] Fixed crash at interrupting channeled spell. Cleanup spell interrupt code. 2009-04-13 10:48:26 +04:00
nos4r2zod
b143a300cb [7662] Spell power coefficients for talent 48505 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 08:34:29 +04:00
False.Genesis
f89c2052ea [7661] Fixed problem with not remove health regeneration from polymorph.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fixed problem with remembering transform spell in case possible stacked negative and positive transforms.
2009-04-13 06:32:40 +04:00
Lightguard
cce772c08c [7660] Fixed problem with lost aura 40214 in some cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-13 04:21:08 +04:00
arrai
a0ef77af5b [7659] Added several security checks to prevent cheating using facked packets 2009-04-13 02:16:01 +02:00
VladimirMangos
bd56140537 [7658] Drop dead code. 2009-04-13 03:13:19 +04:00
DiSlord
edc51e2020 Add name for WorldMapArea.dbc field
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-13 02:22:33 +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
6438bf557f [7656] Implement hack way detection for more cave and not cave areas at new continent. 2009-04-12 13:53:31 +04:00
arrai
db7da450cd [7655] Fixed choosing AI for pets 2009-04-12 11:01:33 +02:00
DiSlord
db429d2a20 [7654] Apply SPELLMOD_DAMAGE for %healing spells (48985 and ranks for example)
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 03:56:14 +04:00
Trazom
5c660c844f [7653] Implement ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE
Correct complete if ACHIEVEMENT_FLAG_SUMM set

Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 02:49:17 +04:00
DiSlord
1a55952fa0 Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-12 02:48:42 +04:00
VladimirMangos
278cd970f4 [7652] Fixed unexpected GM death at deep swim. 2009-04-12 02:36:19 +04:00
DiSlord
1bf2138948 [7651] Fixed some cases with unexpected fatigue bar show for player at transport.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-12 01:05:50 +04:00
Lightguard
8a21bdbae7 [7650] Fix one warlock talent part (47201 and ranks).
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-11 23:44:24 +04:00
DiSlord
c4b2e3f67c [7649] Fix resilience damage reduction coefficients changed after client switch
Signed-off-by: DiSlord <dislord@nomail.com>
2009-04-11 22:18:57 +04:00
VladimirMangos
199c09640d [7648] Resolve problems with expected fall damage at near teleport.
Move near teleport landing code to WorldSession::HandleMoveTeleportAck.
This make Player::TeleportTo code working in same way for both far/near teleports.
Move mSemaphoreTeleport from WorldObject to Player and merge with DoNotMove (using 2 fields for far/near teleport flag).
Skip movement packets until landing confirmation for near teleport from client.
2009-04-11 11:06:30 +04:00
zhanhang03
55e1cc16d1 [7647] Fixed typo in option StartHonorPoints default value set at error.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-11 09:18:39 +04:00
VladimirMangos
c64bbffdd1 [7646] Revert one wrongly added line in prev commit. 2009-04-11 08:59:02 +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
VladimirMangos
263bf2ab22 [7644] Fixed pet slot values using in pet save.
Problem exist from client version switch when stable slot amount changed.
In result this has been source problems with stable use (3-4 slots) and possible pet lost in some cases
or "not save state" for summoned pets.
Use enums to avoid repeating problem, use more safe value for not-in-slot save (for summoned pets)
Fixed data preparing for MSG_LIST_STABLED_PETS.
2009-04-10 09:02:04 +04:00
VladimirMangos
34d69bbfdd [7643] Allow set, store and output creture EventAI data version in addition to world DB and script library versions. 2009-04-09 17:30:59 +04:00
VladimirMangos
2be68b15cd [7642] Move all 0.12 sql updates to sql/updates/0.12
Now in sql/updates root only sql updates added after 0.12 release.
2009-04-09 04:04:23 +04:00
VladimirMangos
463e78c872 [7641] Implement check noDamageImmune fields at gameobject templates loading at server startup. 2009-04-09 00:20:52 +04:00
VladimirMangos
f87684bab6 [7640] Move spell and chair height checks to functions for gameobject loading code. Fixed some field ids. 2009-04-08 23:18:17 +04:00
Triply
4ec75c7c9e [7639] Correctly fixed error spam, revert [7637]. Thx to vladimir
Signed-off-by: Triply <triply@getmangos.com>
2009-04-08 19:10:47 +02:00
VladimirMangos
6c19590062 [7638] Move linked trap gameobject template checks at gameobject templates loading to function. 2009-04-08 20:45:58 +04:00
rastikzzz
3f0bef7a32 [7637] Prevent console spam - FATAL: Unknown arena team type %u for some arena team.
Signed-off-by: Triply <triply@getmangos.com>
2009-04-08 18:18:03 +02:00
VladimirMangos
def4351671 [7636] Move lock id checks at GO templates loading to function and add check for all GO types with similar fields. 2009-04-08 18:20:05 +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
VladimirMangos
3226a22e29 [7634] Fixed: select non-despawnable gameobjects base at appropriate for gameobject type dataN fields.
Many in world gameobject that unexpected daspawned before must now work in more expected way.

In tests i not found any damage to bg gameobject work, and at least this restore expected work for non-bg dorrs//buttons broken
after half-year ago patch (that has been reverted partly in this commit)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-08 05:46:43 +04:00
VladimirMangos
863a747251 [7633] Implement support multiply basic requirements for crireria in achievement_criteria_data.
Also implement additional basic requirements for proper implementing checks for ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE
Req. DB support.
2009-04-08 04:20:26 +04:00
balrok
6b2fd22a9c [7632] more "if"-condition related codestyle in battlegroundfiles
this time with this regex:
sed -i 's/if *( *\(.*\) *)$/if (\1)/' BattleGround*
2009-04-07 17:25:53 +00:00
Triply
73d12d7ccf replaced if( bla ) with if (bla) for applying mangos coding style
replaced it with sed -i 's/if( \(.*\) )$/if (\1)/' BattleGround*
written by triply

Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-04-07 16:13:46 +00:00
Triply
c916f78abb [7631] Removed useless method BattleGroundQueue::BGEndedRemoveInvites
Moved method BattleGroundMrg::InvitePlayer to BattleGroundQueue::InviteGroupToBG
Added some comments to RemindInvite and RemoveInvite events.
Optimalise code.

Signed-off-by: Triply <triply@getmangos.com>
2009-04-07 16:23:10 +02:00
Triply
060203749c [7630] Implement MSG_BATTLEGROUND_PLAYER_POSITIONS sending for AB and AV battleground.
Corrected some comments

Signed-off-by: Triply <triply@getmangos.com>
2009-04-07 09:37:24 +02: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
VladimirMangos
5c7b3e1f50 [7628] Implement .reload for static achievement tables. 2009-04-07 03:11:11 +04:00
VladimirMangos
7d06858866 [7627] Replace built-in in code table by new DB table achievement_criteria_data for store additional data for achievement criteria.
Required DB support.
2009-04-06 23:02:20 +04:00
rastikzzz
e95ba2814d [7626] Fixed: Typo in InitStatsForLevel
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-04-06 14:41:44 +04:00