Commit graph

4950 commits

Author SHA1 Message Date
Den
5313954c53 [11599] Hunter T9 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-04 22:33:41 +04:00
VladimirMangos
1d2172e4c8 [11598] Rogue T8 2P Bonus 2011-06-04 20:48:30 +04:00
VladimirMangos
35bac6976c [11597] Fixed detection part triggering of spell 17767 and ranks.
Also in Unit::IsTriggeredAtSpellProcEvent allow triggering by
spell with custom flag PROC_FLAG_ON_TAKE_PERIODIC
2011-06-04 19:38:52 +04:00
C:/Program Files (x86)/git/dev/rsa
cae9e9c29f [11596] Correct some hunter spells, casted from pet.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-04 14:57:48 +04:00
KiriX
8189bda55f [11595] Classify spell 63729 as battle elixir.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-04 14:29:22 +04:00
Den
10c4da4fef [11594] Implement glyph 45747
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-04 14:15:06 +04:00
VladimirMangos
8c560ebd97 [11593] Use MAX_UNIT_STAND_STATE instead client dependent last value in enum. 2011-06-03 16:24:06 +04:00
Schmoozerd
a0852287ac [11592] More proper way exclude GO_FLAG_LOCKED | GO_FLAG_NO_INTERACT from reset in instances.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-03 12:33:56 +04:00
VladimirMangos
02cbb905fa [11591] Apply spellLevel as reqlevel for non-prof. training spell only. 2011-06-03 12:28:01 +04:00
VladimirMangos
c870ef324d [11590] Cleanups for barGoLink
* Rename barGoLink -> BarGoLink as expected by mangos code style
* Add uint32/uint6 constructor versions for BarGoLink,
  and remove lot casts required before for BarGoLink use
2011-06-03 12:02:49 +04:00
Lynx3d
6b8f9fe03d [11589] Fix compile for "old" compilers.
Need to avoid using "override" as parameter or variable name now...
2011-06-02 23:48:12 +02:00
zergtmn
f45e9ad680 [11588] Use override specifier on Update() methods
Note: override is new keyword in C++11 but VC++ already have override keyword with same behaviour long time.
GCC support explicit overrides starting at 4.7. Added workaround for GCC versions < 4.7.
2011-06-02 23:28:24 +06:00
VladimirMangos
108a167c46 [11587] Use SkillRaceClassInfo.dbc data for check spell training.
* Show race/class specific min level in trainer list (for weapon master for example)
  and use it for check spell traing possibility.
* Hide for specific race/class some spells marked by flag  ABILITY_SKILL_NONTRAINABLE
  This possible in cases when spell available for race/class but learned from talent/etc
  and then don't must be show for race/calss pair in trainer list. Single case in 3.3.5a.
* Add to code tables for profession ranks for seelct correct rank related reqlevel
  and check DB side data for it. Note: DB reqlevel values redundant for profession rank
  spells now.
* Use for reqlevel selection (if DB value not provided) learned spell insteed cast-spell
  spellLevel field. This let in more cases select training reqlevel without provided DB value.
  For LogFilter_DbStrictedCheck = 0 mode output data about like redundant reqlevel values
  in traner tables.
2011-06-02 09:55:25 +04:00
zergtmn
96cad8d771 [11586] Small cleanup and add missing arenas to IsArenaType 2011-06-01 18:30:28 +06:00
zergtmn
4c81559800 [11585] Add countof macro
It can be used to calculate number of elements in static array. Do not use with pointers!
2011-06-01 16:23:01 +06:00
NoFantasy
3788348b46 [11584] Add script effects of spell 48724, 48726, 48728 and 48730
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-06-01 12:12:12 +02:00
NoFantasy
dd66ce20f2 [11583] Correcting typo (damn the copy/paste)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-06-01 09:30:47 +02:00
NoFantasy
70d9d4ef24 [11582] Implement SCRIPT_COMMAND_STAND_STATE to use in *_scripts tables
Set the stand state (enum UnitStandStateType) of any Unit*

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-06-01 09:28:47 +02:00
Amaru
6dd7f784cf [11581] In IsPositiveEffect triggered case check only existed effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-01 06:38:17 +04:00
Sid
8251b3febc [11580] Redundent assigns UNIT_FIELD_FLAGS for pet
Field initilized in Pet::InitStatsForLevel.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-01 05:34:21 +04:00
VladimirMangos
6092bbf502 [11579] Grrrr.... typo prev. commit. 2011-06-01 03:39:09 +04:00
VladimirMangos
7371bb96e1 [11578] Prevent lost aura from spell applied at use equipped consumable item.
So aura will not removed at unequip like item with multiply charges,
and will not removed at last charge with item deleting in result.

No like items in 3.x known but exist in prev. client versions.
2011-06-01 02:36:17 +04:00
VladimirMangos
c462ee5834 [11577] Spell effects with IsExplicitPositiveTarget always positive.
This fix for example spell 1008 buff state.
2011-05-31 13:24:00 +04:00
Schmoozerd
9e83454a23 [11576] Call OnCreatureDeath at critters death also.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-31 05:22:21 +04:00
Schmoozerd
2d82b4bccc [11575] Add support for simulating Yells to Map.
Including case when related creature not loaded.
For proper animation yell from loaded creature for near players
better use correct lowguid/guid if creature.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-31 05:17:47 +04:00
VladimirMangos
7995a36c69 [11574] Speedup fishing loot prepare for zone == subzone case. 2011-05-31 04:04:05 +04:00
VladimirMangos
8698ac207d [11573] Add CreatureInfo::GetObjectGuid
Also remove redundent CreatureData::GetHighGuid
2011-05-31 02:48:25 +04:00
VladimirMangos
442e06090d [11572] "Apparently, SMSG_LOOT_MONEY_NOTIFY is sent after SMSG_LOOT_CLEAR_MONEY"
So what problem, fixed ;)

* Also avoid "share" if single group memeber near loot.
* Use same order of money/achievement update in single and group mode.
2011-05-31 01:44:57 +04:00
Janu
f45b03f256 [11571] Fixed P2 Hunter T10 effects (limit to owner and pet only)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-31 00:08:29 +04:00
NoFantasy
4d5e6126fe [11570] Add enum SpellCastResultCustom, for future use with SPELL_FAILED_CUSTOM_ERROR
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-30 11:58:03 +02:00
VladimirMangos
e17f7bf4d5 [11569] Remove recently added area switch time duel check.
Only duel start expected to be limited by area.
Duel end controlled only distance/map and outOfBound timer
2011-05-30 12:02:30 +04:00
VladimirMangos
5ec1203c4f [11568] Use bit indexes in HITINFO_UNK* naming 2011-05-30 08:29:19 +04:00
Xfurry
b45c37ab9e [11567] Implement spells 66725, 68161, 66808, 68160.
Thanks to Schmoozerd for help implement its in proper way.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-30 06:25:32 +04:00
VladimirMangos
4f214f55d7 [11566] Fixed problem with reuse BG save data not only at first failed login to BG.
Most visible problem result: infinity restart in taxi flight
after join to BG from taxi if character logout in BG and BG finished before re-login.
2011-05-30 05:47:12 +04:00
VladimirMangos
2dbc5b219a [11565] Output guid string instead low guid only for .npc info
Command can be used not only with plain creatures and just low guid
not describe propertly target.
2011-05-30 02:44:22 +04:00
VladimirMangos
59bd6947dd [11564] Missing final false case in CheckMailBox 2011-05-30 02:26:38 +04:00
VladimirMangos
3c0ca51db3 [11563] Add support mailbox access for npc with CREATURE_TYPEFLAGS_SQUIRE 2011-05-30 02:24:16 +04:00
NoFantasy
e0c92f50f4 [11562] Additional comments and corrections to SMSG_LOOT_MONEY_NOTIFY
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-29 14:06:12 +02:00
NoFantasy
539e77b08f [11561] Add missing byte (unknown) to SMSG_LOOT_MONEY_NOTIFY
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-29 11:54:21 +02:00
VladimirMangos
598c843548 [11560] Implement .mailbox command
Work semilar .bank for mailbox case.
2011-05-29 09:36:30 +04:00
Den
e3463dca0d [11559] Not command character to sitdown at logout request when unexpected.
This fix swiming/form flight cases animation in logout request.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-29 05:23:30 +04:00
Schmoozerd
0de4e302b3 [11558] Fixes and way work chnages for GO lock/interact state
* Not reset lock/interact state in instances (so until instance reset)
* Do unti-cheating checks for use attempts locked/non-intareactive GOs
* Implement SCRIPT_COMMAND_GO_LOCK_STATE for control lock/interact state of GOs from scripts.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-29 04:31:34 +04:00
VladimirMangos
4a087e6bda [11557] Duel related fixes
* Implement duel allowed check base at proper area flag AREA_FLAG_DUEL (0x00000040)
  This allow duels for example in capital area 4570 and allow/fogbid correctly some other zones and areas.
* Implement duel cancel at leave duel allowed area
* Fixed code for duels work in sunctuary if area allow duels.
2011-05-29 03:57:15 +04:00
breakwater
7205023415 [11556] Implement spell 42005 proper target seelction.
Also
* added TargetDistanceOrderFarAway ordering function and
* renamed TargetDistanceOrder -> TargetDistanceOrderFarAway

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-29 01:13:22 +04:00
NoFantasy
8d8abd2afb [11555] Add a comment for SMSG_UPDATE_COMBO_POINTS
Remove another obsolete comment

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-28 20:54:36 +02:00
NoFantasy
6b3359575b [11554] Add some "tail" data for SMSG_CAST_FAILED and SMSG_PET_CAST_FAILED
Not all SPELL_FAILED_* are used currently (but ok for future implementation)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-28 13:06:03 +02:00
Schmoozerd
3beb20b67d [11553] Implement script effect for spell 68861.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-28 06:37:31 +04:00
breakwater
ce14b28ba4 [11552] Implement aura SPELL_AURA_STOP_NATURAL_MANA_REGEN (294)
Also partly implement using it spell 62692.

FIXME: Some spells expected to be working for target under spell 62692 effect
       not working. This need additional research and fixes.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-28 05:24:36 +04:00
zergtmn
e204c246f4 [11551] Cast 64455 with full stack amount 2011-05-27 18:54:31 +06:00
NoFantasy
f533813047 [11550] Add and use VICTIMSTATE_UNAFFECTED, in relation with HITINFO_MISS
Some code cleanup in addition and add comments for unknown fields in SMSG_ATTACKERSTATEUPDATE packet

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-27 13:23:40 +02:00