Commit graph

7311 commits

Author SHA1 Message Date
SeTM
29f7f05414 [10805] Remove code duplication in visibility distance check.
at_same_transport already include player checks at assign and
it move to common if make 3 distance cases exactly same.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-02 00:50:02 +03:00
gc
47bdcd1595 [10804] Restore build at *nix.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-02 00:29:51 +03:00
VladimirMangos
090bdf1dc7 [10803] Use ObjectGuid in player loading code. 2010-12-01 15:27:41 +03:00
VladimirMangos
938622bedc [10802] Use ObjectGuid in Mail code.
Some catched bugs fixed in mixed uint32/guid values using cases.
2010-12-01 15:11:08 +03:00
VladimirMangos
3de8212e03 [10801] More ObjectGuid uses in battleground code. 2010-12-01 13:29:30 +03:00
VladimirMangos
6d13cd6553 [10800] Use ObjectGuid in some battleground structures.
Also fix some catches bugs in code in result.
2010-12-01 11:24:35 +03:00
VladimirMangos
ce7b98c45e [10799] Add GetGuidStr() short call for GetObjectGuid().GetString() and use it. 2010-12-01 09:56:13 +03:00
VladimirMangos
2fa4cf41a7 [10798] Some more warning fixes related to BattleGroundTeamIndex/BattleGroundAVTeamIndex. 2010-12-01 02:28:01 +03:00
NoFantasy
afe50cd549 [10797] Check for valid sheath state in creature addon at startup.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-30 09:42:51 +01:00
VladimirMangos
a2909f2674 [10796] Use regular map case in all trigger checks. 2010-11-30 11:12:46 +03:00
VladimirMangos
74d178633e [10795] I must less press random buttons before push in monkey mode. 2010-11-30 04:43:01 +03:00
VladimirMangos
7059888524 [10794] Player.h expected DBCStores.h including.
So make it direct.
2010-11-30 03:52:15 +03:00
VladimirMangos
44218a4fe7 [10793] Fixed build problems for vc90 after recent vmaps dir move.
VC80/VC100 not affected by this.
2010-11-29 23:34:47 +03:00
VladimirMangos
abc6dfca98 [10792] Fixed warnings and need in redundent char* casts in database access code. 2010-11-29 00:47:11 +03:00
VladimirMangos
7f34658dd2 [10791] Fixed more warnings with BattleGroundTeamIndex/BattleGroundAVTeamIndex mixed use. 2010-11-29 00:46:57 +03:00
Neo2003
4dd4576581 [10790] Moved vmap code from shared to game project
After this, realmd code does not contain anymore vmap code
Small cleanup in VC100 filter about vmap files

Signed-off-by: Neo2003 <Neo.2003@Hotmail.fr>
2010-11-28 18:43:14 +01:00
VladimirMangos
20cdcd4280 [10789] Allow use old non-builting ACE versions (pre-ACE-5.5.4) at Unix-side.
This fix build error in relamd code in result
nonexistence ACE_OFF_T in old ACE versions.
2010-11-28 03:27:06 +03:00
VladimirMangos
0c8a7c3826 [10788] Replace bytes in single field bytes2 by independent fields for creature_addon. 2010-11-27 23:56:08 +03:00
alien
9460ed0494 [10787] Add explicitly header dependences for Database/QueryResult.h
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-27 22:59:46 +03:00
Lynx3d
28ccd9975d [10786] A bit spell proc housekeeping
* PPM values for enchanting spells 13898, 20029, 20032, 44524, 44576
* Correct cooldown for enchanting spell 59625
* Add procEx and cooldown for item 50198
2010-11-27 00:52:41 +01:00
VladimirMangos
d266db672d [10785] Fixed warnings at comparison BattleGroundTeamIndex and BattleGroundAVTeamIndex
Maybe adding special operator== or != can be more nice way but for small used cases this
not look so need really.
2010-11-26 17:39:31 +03:00
VladimirMangos
21710cf05d [10784] Restrict items with generated loot really to single character only. 2010-11-25 17:00:52 +03:00
VladimirMangos
525836734c [10783] Fixed comment in characters.sql 2010-11-25 17:00:10 +03:00
VladimirMangos
cc0655a402 [10782] Use Team enum types in all appropriate cases and catches bug in result fix.
* Fixed wrong arenaid use at leave arena queue.
* Fixed memory lost and etc at not virtual EndBattleground call
* Fixed crash at arena join with fake data from client.
* Code cleanups.
2010-11-25 01:11:17 +03:00
VladimirMangos
c2331f58bc [10781] Use BattleGround(AV)TeamIndex enum types in AV battleground code.
* Added BattleGroundAVTeamIndex enum type for 3-case special team list fo AV.
* Rename BattleGroundTeamId -> BattleGroundTeamIndex for clarify
* Some safe checks added and dropped bogus call RewardReputationToTeam in BattleGroundAV::HandleQuestComplete
  for BattleGroundTeamIndex as faction. Unclear for what it expected used so dropped.
2010-11-24 17:39:03 +03:00
VladimirMangos
26668c067b [10780] Fixed warning in ReputationMgr::SetReputation. 2010-11-24 00:13:16 +03:00
Lynx3d
796cf40f87 [10779] Allow ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL to proc on special attacks too. 2010-11-23 15:38:56 +01:00
NoFantasy
0c85afea79 [10778] Make AI call OwnerKilledUnit() more proper.
Affect any pet that are not being controlled (minipet/guardian/protector) and will also apply to pets owned by another creature.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-23 11:07:07 +01:00
VladimirMangos
962acb5198 Fixed invisibility detection for new invisibility types. 2010-11-22 14:03:34 +03:00
alien
e873ccd289 [10777] Explictly include Threading.h into CliRunnable.h
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-22 12:45:44 +03:00
VladimirMangos
fe5fc994a6 [10776] Not mark reputation_spillover_template empty state as error
Now expected by default data used from dbc fields.
2010-11-22 12:38:58 +03:00
Lynx3d
10a1573c8e [10775] Use separate vars to indicate whether reputation needs to be sent or needs to be saved. 2010-11-22 00:28:13 +01:00
Lynx3d
7026dc0d1b [10774] Implement more generic reputation spillover
* Also fixes factions 1037 and 1052
* More correct client output when reputation assigned to parent faction
* reputation_spillover_template can still be used to override spillover from dbc
2010-11-22 00:26:07 +01:00
VladimirMangos
5f4f39851e [10773] Fixed crash at empty build list in realm string. 2010-11-22 02:00:51 +03:00
narma
06b382abb9 [10772] Fixed build for different PostgreSQL version at diff platforms.
* Fixed Problem in different place define OID enums.
  Enums hardcoded in mangos code now as done for many other projects using PostgreSQL

* Other PostgreSQL detection fixes.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-22 02:00:20 +03:00
VladimirMangos
1b1d5c1001 [10771] Explictly include Threading.h into WorldRunnable.h
Instead dependent from includes order in mangosd\WorldRunnable.cpp and mangosd\Master.cpp
2010-11-22 01:32:47 +03:00
XEQT
f186ec9135 [10770] Fixed auction items filering by quality.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-22 00:58:45 +03:00
VladimirMangos
ce09cb70a2 [10769] Fixed trainer flags uses for pet trainers.
* Not exclude trainer flags for client for pet trainers.
* Not report error for pet trianers empty spell lists.

TODO:
* Add check for redundent trainer spell data for pet trainers at server startup
* Need hide train gossip option for pet trainers, but currently without it gossip
  window not open for pet trainer by some unknown reason.
2010-11-22 00:34:52 +03:00
NoFantasy
24d410701f [10768] Remove useless code in PetAI::_stopAttack()
Those are all processed elsewhere and _stopAttack() can not be called when pet is not alive.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-21 14:52:52 +01:00
zergtmn
272fa74854 [10767] Show <overkill> value in combat logs.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-21 10:51:48 +02:00
zergtmn
06e8d8c0ea [10766] Allow AURA_FORCE_MOVE_FORWARD to work on creatures and vehicles. For example, it fixes spell [68284]
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-21 10:27:41 +02:00
qsa
996b284277 [10765] Implement SPELL_AURA_MOD_PERIODIC_HEAL (259)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-21 06:05:30 +03:00
insider42
a34deecfc0 [10764] Implement talent 44543 and ranks charges work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix IGNORE_UNIT_TARGET_NON_FROZEN in part allow casting spell that required frozen target.
2010-11-21 05:32:17 +03:00
VladimirMangos
de13dbea37 [10763] Move comments at 61 line, no functional changes. 2010-11-21 02:44:45 +03:00
insider42
f7b4b88e02 [10762] Implement SPELL_AURA_IGNORE_UNIT_STATE (252).
Original patch provided by Wojta

Note: From patch excluded talent 44543 and ranks stacking code.
      It look like need another implemention different from suggested,
      or at least more research.

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

In patch added enum IgnoreUnitState and related checks now more cheating protected.
2010-11-21 01:42:25 +03:00
Schmoozerd
16cd545df8 [10761] Basic support for target-name in MonsterSay/etc
Change MonsterSay's target to pointer.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-20 21:27:21 +03:00
Schmoozerd
146e7d3970 [10760] Remove unneeded non-player Say et al.
Now expected direct use non-player WorldObject::MonsterSay/etc version

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-20 21:26:07 +03:00
Schmoozerd
ca56284912 [10759] Correctly reset mob orientation upon reaching spawn point. Should also improve visualisation of mob orientation on clients
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-20 19:38:18 +02:00
rsa
07c48c77c9 [10758] Fixed typo in CONTROLED_*
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-20 20:03:43 +03:00
VladimirMangos
b20b3e5ade [10757] Implement zone limited pets unsummon at leave allowed zones.
* Also remove redundant zone/area args for zone/area update function like UpdateZoneDependentAuras.
* Merge Player::*AllControlledUnits functions to Unit version with replace option args by mask arg.
* Unit::*AllControlledUnits guardian iteration make working with internal unsummon call suport for guardians case.
2010-11-20 08:10:32 +03:00