Commit graph

719 commits

Author SHA1 Message Date
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
VladimirMangos
0c19c2c6a2 [11015] Prevent crash at player far teleport landing to nonexisten battleground instance.
Teleport back in like case or to homebind in bad case.
2011-01-16 00:31:41 +03:00
pasdVn
f9a6513d38 [11013] Implemented spell 34026 and bonus to it from talent 35029 and ranks
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-15 21:17:13 +03:00
VladimirMangos
8d62e9dbf7 [11004] Fixed not apply spell for current form at learning.
Some non-passive spells autocasted at shapeshift but without fix
in case already active form at like spell learning it not has been casted
in different from passive similar spells.

This is fix apply dodge chance part of spell 17002 for described case.
2011-01-14 03:59:22 +03:00
VladimirMangos
d6eef703ce [10997] Fixed my wrong addition for wrong spell 58914 (instead 34026). 2011-01-11 05:11:02 +03:00
VladimirMangos
15943c95d8 [10996] Move set max original aura stack cases to aura holder creating
This will avoid show unexpected "gain Name Name(2) Name(N)" spam in log.

Maybe exist more nice way seelct like spells instead raw listing but i not see currently it.
2011-01-10 15:34:31 +03:00
x3n
f56ae22ed9 [10981] Removed 600 percent threat mod for talent 50385
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 08:25:10 +03:00
Kid10
b206e5ddd0 [10962] Fixed wrong spell cast code call with missing bool arg.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added trap code for like wrong cases
2011-01-05 00:54:38 +03:00
QAston
4fe41fb335 [10957] Implement auras SPELL_AURA_MOD_DISARM_OFFHAND (254) and SPELL_AURA_MOD_DISARM_RANGED (278).
Thanks to Qsa prepare for mangos.

Note: single unsure case: is block chance must be show or set to 0 in shield disarm time.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 06:42:35 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
NoFantasy
14c8db9c9a [10937] Add models for spell aura 50517 and 51926
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-29 21:18:39 +01:00
zergtmn
ec6089bbd8 [10935] Move script calls to ScriptMgr
- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-29 21:48:06 +05:00
NoFantasy
dfa30a495d [10930] Add models for spell 65528 and 65529
Add spells in commented form that will need custom handling in similar way for the same aura effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 21:03:34 +01:00
NoFantasy
1031f3b5d2 [10926] Remove player-only limit for HandleAuraTransform where miscvalue is 0
Add error output for unhandled spells plus minor code cleanup

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 11:57:50 +01:00
insider42
5f4dcbbe93 [10917] Allow SPELL_AURA_MOD_PACIFY auras to affect creatures
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-24 19:45:07 +05:00
zergtmn
f7d58220a5 [10916] Implement dummy aura for spell 75973 2010-12-24 18:48:34 +05:00
VladimirMangos
d1b0e5b40f [10915] Use HasFlag function for check flags instead raw access. 2010-12-24 05:38:48 +03:00
VladimirMangos
4302d925d6 [10890] Merge apply/remove cases for recently added dummy auras. 2010-12-18 16:15:24 +03:00
NoFantasy
781841baf1 [10889] Add dummy aura effect of spell 42517
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-18 10:00:03 +01:00
NoFantasy
a17ccd4b97 [10888] Use 0.0f in one function and prevent some compiler warnings.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-18 09:34:15 +01:00
NoFantasy
f13fb6e52c [10887] Add dummy aura effect of spell 42515
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-18 09:16:37 +01:00
reagent
85c3e2e3be [10868] Fixed spell 53479.
(based on insider42's repo commit b0343e1)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-13 16:49:41 +03:00
VladimirMangos
a2e74f182f [10857] Complete set Byte/ShortFlag value functions and use it for PLAYER_FIELD_BYTES proper access.
Not expected any changes in work.
2010-12-11 14:07:09 +03:00
NoFantasy
e1b243f375 [10846] Add dummy aura of spell 43874 (indirectly related to spell/effect 50133)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 11:39:52 +01:00
NoFantasy
4aa0ab7c40 [10845] Add dummy effect of spell 49634 and dummy aura of spell 56511
note* spell will need data in spell_script_target to work properly.
note* the effect of 56511 does not work, see comment in code for details (code added in any case, to not forget the problem)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 10:58:54 +01:00
michalpolko
4686f905ac [10843] Fix AuraType 138 to not affect ranged haste, and rename to SPELL_AURA_MOD_MELEE_HASTE.
Also type 192 had misleading name, rename to SPELL_AURA_MOD_MELEE_RANGED_HASTE.

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-12-09 02:18:53 +01:00
kb_z
1b4210e38c [10840] Implement server side part of SPELL_AURA_ADD_MECHANIC_ABILITIES (293) work.
Also fix stealth/invisibility visual affect flags changed at some 3.x switch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-08 09:12:44 +03:00
VladimirMangos
4c02094737 [10834] Cleanup shapeshift form code. 2010-12-07 14:41:59 +03:00
VladimirMangos
c3254c88ca [10833] Avoid use unsafe remove auras in aura apply code.
Specailly example Aura::HandleModCharm code where old code
call RemoveSpellsCausingAura or (a) dead and not called,
or (b) will remove aura self at call.

* Added safe for aura holder context version of RemoveSpellsCausingAura
* Cleanup old simple RemoveSpellsCausingAura code also.
2010-12-07 12:31:01 +03:00
patman128
031f2b00f1 [10832] Spawn pool at aura 63471 dispel in water.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-07 05:46:58 +03:00
Lynx3d
81b6cb2751 [10830] Prevent spell_proc_event entries to proc on any spell cast when SpellFamilyName is zero.
Now only spells that actually deal damage or heal will trigger
when neither SpellFamilyName nor ProcEx & PROC_EX_EX_TRIGGER_ALWAYS are set.
Before, setting a SchoolMask would override this check, causing many bogus procs.
2010-12-06 21:18:25 +01:00
VladimirMangos
957c9331a9 [10813] Use ObjectGuid for aura holder cast item guid.
Still exist 7 GUID_LOPART uses in code.
2010-12-02 08:02:22 +03:00
VladimirMangos
ce7b98c45e [10799] Add GetGuidStr() short call for GetObjectGuid().GetString() and use it. 2010-12-01 09:56:13 +03:00
zergtmn
272fa74854 [10767] Show <overkill> value in combat logs.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-21 10:51:48 +02:00
zergtmn
06e8d8c0ea [10766] Allow AURA_FORCE_MOVE_FORWARD to work on creatures and vehicles. For example, it fixes spell [68284]
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-21 10:27:41 +02:00
qsa
996b284277 [10765] Implement SPELL_AURA_MOD_PERIODIC_HEAL (259)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-21 06:05:30 +03:00
insider42
a34deecfc0 [10764] Implement talent 44543 and ranks charges work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix IGNORE_UNIT_TARGET_NON_FROZEN in part allow casting spell that required frozen target.
2010-11-21 05:32:17 +03:00
insider42
f7b4b88e02 [10762] Implement SPELL_AURA_IGNORE_UNIT_STATE (252).
Original patch provided by Wojta

Note: From patch excluded talent 44543 and ranks stacking code.
      It look like need another implemention different from suggested,
      or at least more research.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

In patch added enum IgnoreUnitState and related checks now more cheating protected.
2010-11-21 01:42:25 +03:00
rsa
07c48c77c9 [10758] Fixed typo in CONTROLED_*
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-20 20:03:43 +03:00
VladimirMangos
b20b3e5ade [10757] Implement zone limited pets unsummon at leave allowed zones.
* Also remove redundant zone/area args for zone/area update function like UpdateZoneDependentAuras.
* Merge Player::*AllControlledUnits functions to Unit version with replace option args by mask arg.
* Unit::*AllControlledUnits guardian iteration make working with internal unsummon call suport for guardians case.
2010-11-20 08:10:32 +03:00
VladimirMangos
12b80fec68 [10747] Some other aura caster object guid use cases. 2010-11-19 18:36:43 +03:00
C:/Program Files (x86)/git/dev/rsa
87b8a1d1ce [10745] Use ObjectGuid in spellauraholders instead uint64
(based on rsa's repo commit 06342c1)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 16:01:12 +03:00
insider42
355f172fc6 [10743] Add AP/RAP bonus data to spell_bonus_data.
Also remove related hardcoded cases.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:03:19 +03:00
VladimirMangos
f9bcfa3a89 [10739] Cleanup pet remove code and some fixes.
* Merge Player::RemovePet and Pet::Remove function code to Pet::Unsummon
  This let be sure that in all cases all required steps doen. For example this fix
  creature's guardians propertly remove from guardians list.
* Add new pet save mode PET_SAVE_REAGENTS as replacement PET_SAVE_NOT_IN_SLOT+true-arg stable pair in old function args
  This will avoid use reagent save arg with wrong different save modes.
* Fixed recently added code with absent check for re-summon protector pet call.
2010-11-19 02:17:55 +03:00
NoFantasy
8140ff20d9 [10729] Add dummy aura effect of spell 47178 and dummy effect of 47176
Note: see comments in code for spell 47176

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 13:00:50 +01:00
NoFantasy
9c4be1d308 [10723] Add dummy aura effect of 51405 and dummy effect of 51420
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-15 17:31:51 +01:00
tomrus88
76dfdd336f Backports from 400 branch. 2010-11-15 18:01:45 +03:00
virusav
262b3ce1ff [10706] Implement talent 30326 for spell 5138.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 05:11:39 +03:00
VladimirMangos
10d3d3ce24 [10692] Fixed some GCC warnings and code errors.
Thanks to freghar for provide cleaned list of warning messages.
2010-11-07 21:30:55 +03:00
Lynx3d
478bf3b367 [10686] Update outdated comment 2010-11-06 01:12:39 +01:00