Commit graph

6084 commits

Author SHA1 Message Date
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
michalpolko
4bb5fdb53b [11549] Fixed talent 58872 and ranks triggering by not blocked attacks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-27 04:54:04 +04:00
Xfurry
b4c354eff6 [11548] Fixed target amount for spell 64218
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-27 02:54:11 +04:00
VladimirMangos
21a1240811 [11547] Fixed spell 24604 targets.
Fix based at DENNO's idea.
2011-05-27 02:44:03 +04:00
Xfurry
325e610b2a [11546] Implement script effect for spell 72034/72096
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-27 01:10:30 +04:00
Xfurry
c117acc926 [11545] Implement spell 24320
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-26 21:51:35 +04:00
zergtmn
85c8caee9c [11544] Disable automatic *.map file generation at build 2011-05-26 20:15:01 +06:00
VladimirMangos
c5b6cc0b37 [11543] Fixed change form to same (powershifting)
Inspired by patch provided by darkstalker.

Client expected receive form field change at form switing including case with switch to same form.
In fact problem too good mangos optimization in part avoid send unchanged values in update fields.

* Added function Object::SendForcedObjectUpdate()
* It used in form apply code for make sure received by client non-form applied state in middle form shifting state.
* It also used for fishing code when client also expected received some update fields chnages before
  animation update. New function send update to all all client instead before used code that send it to fishing player
  and resend later one more time to other players and player itself as normal update.
2011-05-26 17:18:47 +04:00
VladimirMangos
81984732a3 [11542] Replace partly spell list by recently added function in one more place. 2011-05-26 04:22:24 +04:00
breakwater
6b66f12a67 [11541] TARGET_CURRENT_ENEMY_COORDINATES/TARGET_ALL_ENEMY_IN_AREA_INSTANT pair code duplication.
Default way proccessing will work fine, so drop special case in code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-26 04:14:53 +04:00
VladimirMangos
2b79599986 [11540] Fixed spell 59752 and some other impossibility cast in stun like states.
Original patch provided by darkstalker.
2011-05-26 03:47:03 +04:00
zergtmn
5cae1c2211 [11539] Implement group guids with HIGHGUID_GROUP 2011-05-25 19:55:35 +06:00
NoFantasy
0fbf2cf7d3 [11538] Add safeguard against weirdness in UpdateCombatSkills
Prevent weapon/defense update also in case of negative skill difference result (may become negative after use of .level -N -command)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-25 12:25:14 +02:00
NoFantasy
4b919b1f32 [11537] Nerfing the word "Redunction" and remove one letter, to Reduction.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-25 10:43:45 +02:00
SilverIce
4bb2d662a2 [11536] Override Unit::SetPhaseMask for players, move some functionality from Aura::HandlePhase 2011-05-25 04:20:50 +03:00
VladimirMangos
78a4460501 [11535] More wide use IsFitToFamilyMask
Simplify check for one from cases base at recheck spell data.
2011-05-25 04:06:55 +04:00
VladimirMangos
2cbde12458 [11534] Guild disban memory losses and unsafe code.
* Make sure that guild object deleted in all cases after disband.
* Avoid recusive like way call Disband from DelMember
2011-05-25 03:20:28 +04:00