Commit graph

4176 commits

Author SHA1 Message Date
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
Lynx3d
1ef8ea1161 [10756] Implement armor penetration limitations
The tool-tip says "up to X%" for a reason...
2010-11-20 04:21:41 +01:00
Lynx3d
7663cf6329 [10755] Use class specific combat rating factors from gtOCTClassCombatRatingScalarStore.dbc
* Some classes had effect of melee haste buffed
* Change to armor penetration rating was hidden there too
2010-11-20 03:30:19 +01:00
rsa
92ed528eb9 [10754] Use UNIT_FIELD_CRITTER for store minipet guid.
Also move related code to Unit and allow summon minipets by creatures.

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

Also fix creature's totems unsummon at owner remove from world.
2010-11-20 04:37:14 +03:00
VladimirMangos
f671f09950 [10753] Lost mangos.sql changes in one from recent commits. 2010-11-20 02:59:50 +03:00
VladimirMangos
c2096380cf [10752] Convert to objetguids map scripts and finally drop IS_PLAYER_GUID. 2010-11-20 02:38:56 +03:00
VladimirMangos
2601022b9f [10751] Use objectguids in item code.
Also
* Fixed unexpected container updated state after inventory load
* Make .debug getitemstate command more friendly by args.
2010-11-20 01:59:48 +03:00
VladimirMangos
bbd34562a8 [10750] Convert Gameobject owner to objectguid use. 2010-11-19 21:36:01 +03:00
VladimirMangos
6154cb3b43 [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
VladimirMangos
f5cf98e9f4 [10748] Convert MonsterSay/Say and similar functions to ObjectGuid use. 2010-11-19 20:34:23 +03:00
VladimirMangos
12b80fec68 [10747] Some other aura caster object guid use cases. 2010-11-19 18:36:43 +03:00
VladimirMangos
f034a9bd0a [10746] Use objetguid for other .list auras command part 2010-11-19 17:06:33 +03:00
C:/Program Files (x86)/git/dev/rsa
87b8a1d1ce [10745] Use ObjectGuid in spellauraholders instead uint64
(based on rsa's repo commit 06342c1)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 16:01:12 +03:00
Den
62c448b466 [10744] Prevent equip/unequip items in process logout
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:24:18 +03:00
insider42
355f172fc6 [10743] Add AP/RAP bonus data to spell_bonus_data.
Also remove related hardcoded cases.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:03:19 +03:00
QAston
f27741460f [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table.
Thanks to insider42 for prepering patch for mangos repo.

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

Also added loading check for redundant ap/ap_dot data in table.
2010-11-19 05:23:29 +03:00
NoFantasy
21d63d491b [10741] Add AI function OwnerKilledUnit for protector pets (when owner kills unit)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-19 01:56:52 +01:00
virusav
82505a8633 [10740] Cleanups in spell effects names.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 02:49:16 +03:00
VladimirMangos
f9bcfa3a89 [10739] Cleanup pet remove code and some fixes.
* Merge Player::RemovePet and Pet::Remove function code to Pet::Unsummon
  This let be sure that in all cases all required steps doen. For example this fix
  creature's guardians propertly remove from guardians list.
* Add new pet save mode PET_SAVE_REAGENTS as replacement PET_SAVE_NOT_IN_SLOT+true-arg stable pair in old function args
  This will avoid use reagent save arg with wrong different save modes.
* Fixed recently added code with absent check for re-summon protector pet call.
2010-11-19 02:17:55 +03:00
TOM_RUS
de66f32882 [10738] In fact set pet name to empety state redundent.
Client work propertly also if used default name from creature template (set in create code).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-18 23:23:22 +03:00
VladimirMangos
1fe4b1f4bb [10737] Use empty name for non-unique named pets.
This let to client select appropriate name by self base at UNIT_CREATED_BY_SPELL data.
2010-11-18 22:58:49 +03:00
zergtmn
5579471075 [10736] Fixed unexpected typo in prev. commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-18 22:26:46 +03:00
VladimirMangos
876458c6e4 [10735] Fixed spell 51420 work by use recently added protector pets as expected.
Thanks to NoFantasy for problem research (and prev. new pet type adding case research aslo) ;)
2010-11-18 22:21:31 +03:00
VladimirMangos
98d19f4d07 [10734] Rename and clarify SummonPropertiesEntry.Type->Title field meaning.
This also show why we have some problems with sorting sumons by types base at this field.

Thanks to TOM_RUS for research.
2010-11-18 22:07:33 +03:00
VladimirMangos
9c0076181b [10733] Implement defencive guardians pet type for creatures like 28120 2010-11-18 21:23:22 +03:00
VladimirMangos
10273fa38a [10732] Not send session fields as args into HandleMoverRelocation/VerifyMovementInfo.
Also mark args as constant where expected in this functions.
2010-11-18 06:12:15 +03:00
NoFantasy
bd48d3cdc9 [10731] Remove redundant isAlive-check, thanks LordJZ for notice
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 19:09:51 +01:00
NoFantasy
cfbfae7f40 [10730] Check if Pet's target is a valid target (isTargetableForAttack)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 18:26:01 +01:00
NoFantasy
8140ff20d9 [10729] Add dummy aura effect of spell 47178 and dummy effect of 47176
Note: see comments in code for spell 47176

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 13:00:50 +01:00
virusav
673b798863 [10728] Fix Deathly Stare spell
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-17 01:34:23 +02:00
Ambal
f67d89f109 [10727] Map system re-engineered. Special thanks to Blueboy for tests.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-16 21:08:28 +02:00
NoFantasy
f5e40a5fda [10726] Correct one SQL in tools, table was renamed.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-16 08:54:18 +01:00