Commit graph

6108 commits

Author SHA1 Message Date
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
VladimirMangos
b5c3ec952f [11533] Fixed wrong call IsFitToFamilyMask in my prev commit.
Also prevent like wrong usage in future by additional check.
2011-05-24 18:08:45 +04:00
VladimirMangos
da06d09c45 [11532] Prevent triggering some spells at 0 damage hit. 2011-05-24 16:33:23 +04:00
SilverIce
1b709c8ff8 [11531] Normalize gameobject's quaternion, thanks to zergtmn for pointing 2011-05-24 13:12:48 +03:00
breakwater
d02bee5127 [11530] Fixes for talent 47201 and ranks
* Update triggering source spells.
* In code overwrite wrong family mask data for spell mod.
  If more cases will be maybe will better restore spell_affect table.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-24 06:00:47 +04:00
SilverIce
7c86d3f477 [11529] Pack and send to client all gameobject's quaternion components which allows place gameobjects cornerwise.
Update '.gobject turn' command, now you have to specify 3 rotations to turn gameobject: rotation angles around z, y and x axes.
Note to DB devs: use QuaternionCompressed::Unpack to extract rotations from the data that came with UPDATEFLAG_ROTATION.
2011-05-24 03:49:13 +03:00
blueboy
ab50a7d3e9 [11528] typeid usage req. include <typeinfo> for GCC build.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-24 03:53:10 +04:00
SilverIce
7d889c0821 [11527] Check rotation0 and rotation1 fields at gameobject data loading 2011-05-24 02:27:45 +03:00
VladimirMangos
f98144e89d [11526] Make ChatHandler accessable from script DLL as expected by recently added AI call. 2011-05-24 01:15:45 +04:00
VladimirMangos
dcac3b8fa0 [11525] Fixed stacking talent 46951 and ranks triggered spell with glyph 43424 triggered. 2011-05-23 07:07:50 +04:00
VladimirMangos
d5675ba3bd [11524] Avoid adding auction item to player inventory update queue.
Also not set ITEM_FIELD_CONTAINED before real adding item to inventory.
No known porblem with last but code cleanup.
2011-05-23 05:33:21 +04:00
Schmoozerd
4ba5aa83e3 [11523] Implement .npc aiinfo
Comamnd show information about used AI and scripts for targeted creature.
AI classes (including from script DLL) can provide additinal info about own state.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-23 03:05:05 +04:00
jethro84530
ae2a9e1c6a [11522] Replace code expression (!a > 0) to safe version.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-22 02:02:14 +04:00
Iriskin
5876afb0a4 [11521] Fixed typo in chat command help.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-21 23:55:03 +04:00
VladimirMangos
40fb57e461 [11520] Fixed service/daemon calls order. Mixed wrongly in my prev. related fix. :/
Provide more information at windows service (un)install errors.

Note: by some reasons i have sometime problems with start windows service using '-s run' command
but it start fine by manual from services control applet. Maybe related to used by me win7 x64
2011-05-21 23:47:36 +04:00
NoFantasy
b46237b643 [11519] Fix player totem icons (those under player portrait)
SMSG_TOTEM_CREATED must be sent before totem added to map.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-21 10:32:07 +02:00
NoFantasy
569d7cdc42 [11518] Add script effect of spell 48810 and 48811, dummy aura of 48143
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-05-21 08:15:12 +02:00
VladimirMangos
f2cdfcf9b2 [11517] Restore work glyph 43350 2011-05-21 06:04:49 +04:00
laise
36857cadc9 [11516] Druid T10 Balance 4P Bonus
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-21 04:49:36 +04:00
przemratajczak
95b980690a [11515] Implement spell 62679.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-21 04:21:25 +04:00
przemratajczak
927a577590 [11514] Periodic summon spells 53035, 53036, 53037.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-21 00:04:31 +04:00
Vinolentus
19ff7f0a8b [11513] Not pass command list as format %s value.
This let avoid not nice command list text length limitation.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-05-20 23:14:06 +04:00
VladimirMangos
8022cef6a7 [11512] Fixes for channeled spells casting.
* Set as expected caster channeling target to created dynamic object
  at persistent aura area spell casts for channeled spell.
* Select correct caster/target for triggered spell in case channeled perioding trigger aura.
2011-05-20 22:53:30 +04:00
TOM_RUS
489dc80875 Fixed typo. 2011-05-20 20:08:18 +04:00
LordJZ
ad524d43fe [11511] Fix opcode names after recent update
Signed-off-by: zergtmn <zerg@myisp.com>
2011-05-20 21:54:41 +06:00
VladimirMangos
0564b622c2 [11510] Implement SPELL_AURA_MOD_PARRY_FROM_BEHIND_PERCENT (288) and related spell 19263.
Original patchs provided by KAPATEJIb and Roshnak.
2011-05-19 03:50:30 +04:00
VladimirMangos
b7cc436571 [11509] Trigger 35541 and ranks only at success offhand hit. 2011-05-18 23:05:01 +04:00