Commit graph

78 commits

Author SHA1 Message Date
VladimirMangos
76f7a25f2d [7071] Fixed recent problem with pacified aura for druids with flight forms. Cleanups code. 2009-01-12 01:50:03 +03:00
DiSlord
dd2a59f56d [7068] Use area aura duration for apply aura on unit in area
Allow remove SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE spells by 31224

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-11 21:15:45 +03:00
DiSlord
48bebc4056 [7063] Absorb auras fixes (add custom handle for some auras)
Fix Shaman 51474 and ranks
Fix Rogue 31130 and ranks
Fix Druid 33851 and ranks
Fix DK 49145 and ranks, 49157 (TODO: need use only on transform), 50462, 53766, 51052,
Fix 41475 - boss cast
Fix 39228, 60218 (item 27770/37220 spells)
Hidden cooldown for 53601.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 19:14:09 +03:00
DiSlord
cb66f99fc2 Fix priest 47540 and ranks
Also stop chanelling mage AM/priest 47540 if target die
Set DK cast 52212 as triggered from aura.

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-10 00:56:42 +03:00
VladimirMangos
3b15d1ec7e Remove unused local variable. 2009-01-09 21:07:27 +03:00
Arthorius
fb10c7c8f2 Implement DK 43265 and ranks
Signed-off-by: DiSlord <DiSlord@nomail.ru>
2009-01-09 03:49:26 +03:00
DiSlord
e573bd9ea8 [7051] Implement some mage dummy triggers (fix typo)
44546 and ranks
44449 and ranks
54747 and ranks

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-08 03:53:21 +03:00
DiSlord
c2741b50e7 [7049] Work vs Auras
Allow stack some auras from some caster in one
Move apply/remove aura state on apply/remove aura (on 1 add / on last remove)
Correctly fill aura flag and send duration update to client
Not use m_procCharges for store satack amount, used m_stackAmount
Fixes in HandlePeriodicDamage (use m_stackAmount, fix formulas to 303, optimisation)
Fixes in Spell::EffectSchoolDMG (use m_stackAmount, fix formulas to 303)
Remove unused uint32 m_PeriodicEventId from aura struct
Add Unit::RemoveSingleSpellAurasFromStack for remove one Spell auras from stack
Add Aura::RefreshAura() for refresh aura duration

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-08 01:12:52 +03:00
DiSlord
32a7c35a95 Restore damage calc for some paladin seal after client switch
Allow proc shaman heal shield on non players

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-08 00:27:24 +03:00
DiSlord
a3f3caf25a [7043] Remove not need code
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-07 16:24:44 +03:00
DiSlord
daf24ce90c [7029] Some work vs aura charges
Move to protected: need use SetAuraCharges, GetAuraCharges, DropAuraCharge
Now m_procCharges == 0 if infinite charges, and > 0 for limit
Remove not need UpdateAuraCharges()

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-05 04:16:53 +03:00
DiSlord
39c1f547f6 Fix typo in prev commit 2009-01-04 17:31:34 +03:00
DiSlord
f893214e2b [7019] Fix AP/RAP bonus from stat at aura apply/remove
Not use CLASSMASK_WAND_USERS mask for AP bonus

Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-04 17:27:40 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
DiSlord
ba5e3dabc6 [7012] Fix use SpellVisual data
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-03 13:08:04 +03:00
VladimirMangos
c88dfbccb3 [7009] Fixed spell 6991 work.
Also fix max power limits in some miscvalue checks.
2009-01-03 00:08:36 +03:00
DiSlord
dc8649a86a [7008] Remove not used in 303 aura states from code
Signed-off-by: DiSlord <dislord@nomail.com>
2009-01-02 23:44:08 +03:00
ApoC
48d6043eed [7007] Fix: Using enum value instead of numeric constant.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-01-02 17:39:34 +01:00
DiSlord
bc0a840e6a [6981] Fix send SMSG_PERIODICAURALOG
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-30 01:51:23 +03:00
Arthorius
27175a9ad8 [6965] Implement aura SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE.
This must let work triggering part of:
DK talents 49182, 49027, 49149, 49223, 50880, 55610 and ranks
Warrior glyph item 43418
And some boss spells.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2008-12-28 22:36:42 +03:00
DiSlord
fd5a994659 Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-28 00:41:47 +03:00
DiSlord
c92d146391 [6954] Add some missing in 303 dbc charge count for mods
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-27 18:35:51 +03:00
DiSlord
30908fb5ff Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-27 18:29:03 +03:00
DiSlord
ae4a0032c1 [6945] Implement FORM_METAMORPHOSIS Shapeshift
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-25 22:25:31 +03:00
DiSlord
bae58eb069 Merge branch 'master' of git@github.com:mangos/mangos into procflag 2008-12-23 18:03:21 +03:00
DiSlord
b72b1a1785 Add name for 194 SPELL_AURA_MOD_IGNORE_ABSORB_SCHOOL 2008-12-21 05:20:19 +03:00
DiSlord
18eeaa85dd Implement 220 SPELL_AURA_MOD_RATING_FROM_STAT aura
Recalculate Melee/Ranged/Spell Hit Chances (not apply/remove) for players

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-21 05:20:09 +03:00
DiSlord
4090872bfa Implement SPELL_AURA_MOD_ATTACK_POWER_OF_STAT_PERCENT aura
Remove redurant check m_miscvalue on Intelect for SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-20 23:56:58 +03:00
DiSlord
213a10dcbd Implement 277 SPELL_AURA_MOD_MAX_AFFECTED_TARGETS
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-17 01:52:10 +03:00
DiSlord
2c1f19d997 Implement 275 SPELL_AURA_MOD_IGNORE_SHAPESHIFT
Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-17 00:46:53 +03:00
VladimirMangos
fc684dc737 Simplify check in reagent cheking code. Small code cleanups after recent commit. 2008-12-16 19:19:31 +03:00
DiSlord
f1cc9dc319 * Add some aura names and comments
* Implement 256 SPELL_AURA_NO_REAGENT_USE aura
* Move no reagent check to Player::CanNoReagentCast
* Add some func for get/check SpellClassMask (used in some new aura/effect)

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-16 18:24:30 +03:00
tomrus88
71b1065c8b Merge branch 'master' into 303
Conflicts:
	src/game/CharacterHandler.cpp
	src/game/Chat.h
	src/game/Player.h
	src/game/World.h
	src/game/debugcmds.cpp
2008-12-16 07:30:23 +03:00
ApoC
a5331ab517 [6910] Implemented rewritten arenas. Original author w12x@getmangos.com
Many thanks also to:
  Balrok@github.com for long time updating.
  Triply@github.com for great work in rewriting process.
  All who I forget to name.
Signed-off-by: ApoC <apoc@nymfe.net>
2008-12-16 00:17:24 +01:00
DiSlord
f7701b87a1 Some work vs SPELL_AURA_PERIODIC_DUMMY aura
* Optimisation
* Implement Warrior 61216 and ranks
* Implement Druid 22842
* Implement Hunter 53301 and ranks, 53511 and ranks
* Implement DK 45524 and related spells, 48978 and ranks
* Some comments for future

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-15 02:07:24 +03:00
tomrus88
857e7ae7ee Updated opcodes enum. 2008-12-12 18:12:28 +03:00
DiSlord
6c02f00a93 Merge branch 'master' of git@github.com:mangos/mangos.git into procflag 2008-12-12 01:34:09 +03:00
VladimirMangos
3da9f3f4cc [6889] Backport some not client version specific changes and fixes from 303 branch. 2008-12-09 14:08:29 +03:00
VladimirMangos
82cbd9152d Fixed possible crash in Aura::HandleModPossessPet
Also small code cleanup.
2008-12-09 11:47:49 +03:00
VladimirMangos
6cee03bae0 Fixed build after merge. 2008-12-09 08:28:42 +03:00
tomrus88
ef69f6b80c Merge branch 'master' into 303
Conflicts:
	src/game/Player.cpp
	src/shared/revision_nr.h
2008-12-09 00:32:47 +03:00
DiSlord
9b842b6fdc Work under spell mods
* Add support > 64 bit spellFamily mask
    * Remove not used fields in SpellModifier
    * Remove not used (and not correct work vs charges) GetTotalFlatMods, GetTotalPctMods
    * Use DBC based data for spell_affect
    * More better work SPELL_AURA_ADD_TARGET_TRIGGER aura

Signed-off-by: DiSlord <dislord@nomail.com>
2008-12-08 23:22:39 +03:00
balrok
2e08a63da7 [6884] Replaced iterator++ with ++iterator in for-loop-headers
i used this script
for i in ls *.[ch]*; do cat $i | sed -r 's/(.*for.*iterator.*;\
    *)([a-z0-9\_\*]+)\ *\+\+(.*)/\1++\2\3/' > /tmp/mangos/$i; done
for i in ls *.[ch]*; do cp /tmp/mangos/$i $i; done

and rechecked it with my eyes, if everything is right
i took only for-loops cause they can be gathered easier with a script

Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-07 19:49:45 +01:00
VladimirMangos
e58df484a2 Implement aura use in new version of racial trait 20550. Add unit stat mods for rune/runic powers.
Last change will also prevent corruption armor and holy resistence values.
2008-12-04 06:30:57 +03:00
tomrus88
a2503162fc Fixed possible crash 2008-12-03 00:27:33 +03:00
tomrus88
0e0d721292 AuraConvertRune, EffectActivateRune, dunno if it's correct way to do that... 2008-11-30 16:16:00 +03:00
DiSlord
4a07c0c6c2 Apply procPatch 2008-11-26 22:23:10 +03:00
tomrus88
5fae2418ab Misc fixes 2008-11-23 16:18:14 +03:00
tomrus88
5b5e266c17 Misc fixes 2008-11-22 09:04:10 +03:00
tomrus88
397efd4fac Merge branch 'master' into 303
Conflicts:
	src/game/SpellEffects.cpp
2008-11-18 18:08:58 +03:00