Commit graph

1900 commits

Author SHA1 Message Date
laise
adcfd1e078 [8650] Allow stacking some paladin spell auras.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-16 06:11:50 +04:00
VladimirMangos
a4d61a6988 [8649] Implement SPELL_AURA_MECHANIC_IMMUNITY_MASK (147) and related cleanups.
* Always use machanic masks in form (1 << (mech-1)), fix all cases.
* Imppement SPELL_AURA_MECHANIC_IMMUNITY_MASK (mostly boss/elite spells).

Note: db stored mechannic masks already stored in proper format so not affected.
2009-10-15 20:53:01 +04:00
qsa
369e50e068 [8648] Implement SPELL_AURA_MOD_HONOR_GAIN
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-15 15:04:36 +04:00
NoFantasy
4011433918 [8647] Use correct check in _BuildMovementUpdate, if creature can fly.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-15 00:28:01 +02:00
NoFantasy
b780e2dd80 [8646] Add basic support for QUEST_FLAGS_PARTY_ACCEPT (2).
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 19:19:49 +02:00
XTZGZoReX
aff1a3e59f [8645] Cleanup code for config loading/store/access.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-14 20:48:16 +04:00
VladimirMangos
4d3e43e814 [8644] Add assert for catch not updated constant at DBC data changes. 2009-10-14 19:35:40 +04:00
NoFantasy
e973b082f4 [8643] Correct a few typos in debug log messages.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 13:42:44 +02:00
NoFantasy
65965bc5fa [8642] Replace the Spanish word 'hostil' with the English one.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 12:46:10 +02:00
NoFantasy
da4a1037e7 [8641] Add comment for two unknown UNIT_FLAG_
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-14 10:42:47 +02:00
ApoC
7eb95ed64b [8640] Puted back commented not obsolete but disabled code what i removed in [8637] by mistake.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-14 10:34:59 +02:00
VladimirMangos
ec2fd7396f [8639] Fixed tabs and trailing whitespaces. 2009-10-14 11:46:09 +04:00
ApoC
9fd4965299 [8638] For TARGET_FOCUS_OR_SCRIPTED_GAMEOBJECT check also if target type in DB is GameObject target.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-14 03:07:38 +02:00
ApoC
ed0b01c65c [8637] Added special check in load time for TARGET_FOCUS_OR_SCRIPTED_GAMEOBJECT, code cleanup.
- Added check for presence of implicit spell focus for TARGET_FOCUS_OR_SCRIPTED_GAMEOBJECT
- Avoid double creature lookup in loading code
- Code style cleanup
- Old commented code part removed

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-14 02:38:52 +02:00
ApoC
901eea0813 [8636] Fixed patch intoduced in [8544]. Now targeting should work as main idea of patch intended.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-14 02:38:38 +02:00
pasdVn
c47cf7bd61 [8635] Rewrote bonus damage claculation
* calculation depends on the damageClass now
  ->SPELL_DAMAGE_CLASS_RANGED & SPELL_DAMAGE_CLASS_MELEE use MeleeDamageBonus()
  ->SPELL_DAMAGE_CLASS_MAGIC & SPELL_DAMAGE_CLASS_RANGED use SpellDamageBonus()
* changes/improvements in MeleeDamageBonus:
  -> improved criterions to apply bonuses
  -> implemented scaling of FLAT damage Bonus for non weapon damage based spells
  -> support of DOT's
  -> added pet's bonus damage for non weapon based spells
* general cleanup in CalculateSpellDamage() and MeleeDamageBonus()
* implemented global helper functions GetWeaponAttackType() and GetAuraTicks() in SpellMgr

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-14 00:33:24 +02:00
balrok
29fde5f671 [8634] BattleGrounAV: fixed wrong strings at boss-dead
thx to henhouse
2009-10-13 21:59:49 +02:00
Derex
fd48113941 [8633] Fix possible build error at ASSERT redefine.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-13 20:49:13 +04:00
Pablo
85d8aaccd8 [8632] Fixed syntax for new autotools.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-12 23:02:28 +02:00
ApoC
d36a62cee4 [8631] Query fix for PGSQL.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-12 14:34:38 +02:00
VladimirMangos
7c3f35c408 [8630] More fatigue/breath/fire times control in config.
DisableWaterBreath replaced by TimerBar.Breath.GMLevel so update configs if use.
2009-10-12 01:32:40 +04:00
balrok
01318dbc8c [8629] don't let eventaicreatures cast spells in stuns etc.
also small correction to feign death (unit could still turn around
to face his victim with this aura)
2009-10-11 22:42:07 +02:00
ApoC
2be50d4b95 [8628] Code cleanup.
Signed-off-by: ApoC <apoc@nymfe.net>
(cherry picked from commit 5aab292281cbd57d65960003451155cc5a92d25a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-11 21:05:20 +04:00
SilverIce
023b13f348 [8627] Avoid not needed too oftent send update data, cleanups.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-11 19:31:57 +04:00
NoFantasy
9cb356851c [8626] Add missing argument names in function declaration.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-11 16:37:41 +02:00
balrok
02d45b4b54 [8625] feign_death cleanups
use an extra function for setfeigndeath()
like it's done with setfeared already..
allow to apply feigndeath on creatures too
avoid moving of creatures with feign death applied
and start attacking last victim when feigndeath disappears
2009-10-11 14:22:52 +02:00
balrok
f4081b2c6a [8624] fixed typo introduced in 8552
(it was commit e294da6bbf)

through that pickpocketing didn't work right
2009-10-11 13:55:04 +02:00
NoFantasy
45a2ee21ef [8623] Add function to update orientation of unit (for both server and client)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-11 11:32:47 +02:00
NoFantasy
732bcfbbb6 [8622] Add own function to send AI_Reaction packet.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-10-11 00:01:49 +02:00
zhenya
4cc389ff71 [8621] Missing break.
Not affect anything but code style problem anyway.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-11 00:11:33 +04:00
Lynx3d
1fdf473bd8 [8620] Use platform independent by size types in extractor typedefs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also use in same way size fixed types in windows case.
2009-10-10 20:22:29 +04:00
VladimirMangos
61e0bf532d [8619] Drop VC71 support in extractor, add some includes in VC project files. 2009-10-10 20:10:35 +04:00
GalaxyMan
545218fda3 [8618] Implement glyph 42752
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix typo in mangos.sql.
2009-10-10 17:26:37 +04:00
Lutik
ddb67f69ca [8617] Update resilience affect for 3.2.x
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-10 14:55:58 +04:00
VladimirMangos
f5db4fc163 [8616] Some cleanups in WorldSession::SendMailTo 2009-10-10 12:16:49 +04:00
balrok
29e6601335 [8615] fixed wrong assert in av-code
when alliance captured snowfall and horde assaulted
this grave while assault in progress crashes could happen
2009-10-10 10:08:38 +02:00
VladimirMangos
17b0c43ea9 [8614] Simplify check, drop redundent break. 2009-10-10 11:40:44 +04:00
balrok
21de4570dc [8613] mail from battlemasters should be deleted after one day 2009-10-10 01:45:21 +02:00
balrok
caf4732e38 [8612] better error-check when getting bgTypeId from Battlemasterentry 2009-10-10 01:40:22 +02:00
balrok
d7e01c3e16 [8611] added new 322 value to MailStationery
also changed numbers from hexadecimal to decimal
2009-10-09 22:47:10 +02:00
balrok
4dc1df7d54 [8610] castchecks for recall spell for the av-trinket
this spell should be cast only in battlegrounds
and only after battleground started
2009-10-09 20:48:07 +02:00
LordJZ
bb10fada9a [8609] fixed typo in UpdateScore in last commit 2009-10-09 20:33:06 +02:00
balrok
45f6a474bf [8608] implement BattleGround Alterac Valley
sql won't be included - please look at your database
providers forum

also note, that creature_loot_template id 0
is used for the loot of dead players in this bg
(after a player died and you remove insignia from him..
he not only drops money - he drops some random items too)

further work must be done in better code for adjusting right
levels to creatures - maybe using something similar like it's
done in heroic instances

also quests and creatures needs some scripts in future

thanks to:
netsky - initial start of this patch
bogie - 2nd person writing on this patch
triply, kapatejib, vladimir - code review and suggestions
arrai - for his great tool and help
and all testers / code contributers - I won't write
down a list, else I would forget most probably one ^^
2009-10-09 18:18:22 +02:00
balrok
ed5130c1c1 [8607] more userfriendly eventcommands
.event start/stop will now output the started/stopped eventame+id
.event activelist got renamed to .event list with optional parameter "all"
so .event list - will list all active events
and .event list all - will list all events including inactive ones
2009-10-09 14:38:58 +02:00
VladimirMangos
f591211538 [8606] Restore seelction point around dest coordinates for TARGET_RANDOM_NEARBY_DEST
Thanks to qsa for pointing to problem.
2009-10-09 13:08:33 +04:00
VladimirMangos
c5bda77fe2 [8605] Check unused text/summon data in EventAI scripts. 2009-10-09 10:26:19 +04:00
arrai
fe1560a483 [8604] Consider random enchants in chatmessage validation 2009-10-09 02:14:09 +02:00
balrok
c999490aa2 [8603] corrected comment of last commit
the problem was in Unit::setFeared
which got called after removing a fearaura

inside setFeared there is a check for isAlive()
which will return true in this case, cause m_deathState
is updated only after RemoveAllAurasOnDeath()

a fix could be to set m_deathState earlier, but
then auras which require a spellcast on remove
won't work anymore..
(not sure if we actualy have such auras)

but if in future more functions will require special code there,
moving the m_deathState setting should be considered

big thx to Naicisum for explanation and investigation
2009-10-09 02:01:16 +02:00
balrok
5a48fe3c96 [8602] update movement packet when unit dies
this avoids, that feared creatures walk away after dead
(happens often if a creature dies in fear)
2009-10-08 18:37:06 +02:00
VladimirMangos
308439a335 [8601] Fixed some movement *_ACK packets structure after switch. 2009-10-08 16:02:28 +04:00