Commit graph

5994 commits

Author SHA1 Message Date
Schmoozerd
5895cb38e3 [11376] Allow fallback to creature_template_addon of base entry
Use creature_template_addon from base entry when addon for difficulty_entry_N does not exist.
It is easier to create data for the exceptions rather than the general.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-17 13:31:21 +02:00
VladimirMangos
c6dee6c2d6 [11375] Move holder-wide code from effect loop in immune cast checks. 2011-04-17 06:37:49 +04:00
VladimirMangos
79cd96af8a [11374] Another fix for Spell::EffectPersistentAA
If we use affected caster for dynamic object then we must use it for spellmods apply also.
2011-04-17 05:21:36 +04:00
TOM_RUS
32c42298a0 More DBC struct fixes. 2011-04-17 05:16:15 +04:00
VladimirMangos
5fae870a1d [11373] Clarify Spell::GetAffectiveCaster result and add comment for recent added call case. 2011-04-17 04:56:54 +04:00
DasBlub
7b2308e483 [11372] Convert tabs to 4 spaces
Thanks to Darkknight900 for pointing out!

Used this script on sql/ and src/: find . -iname *.h -o -iname *.cpp -o -iname *.inc -o -iname *.sql | xargs sed -i 's/\t/    /g'
2011-04-17 01:34:51 +02:00
NoFantasy
187a1916e3 [11371] Drop not needed MAX_CONDITION define
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-16 23:41:23 +02:00
NoFantasy
b39877f24a [11370] Implement CONDITION_LEARNABLE_ABILITY, check by spell and optionally item
The primary use are intended for items that teach spell, typically for primary/secondary tradeskills.

Condition is true when player does not know the spell already, has the needed corresponding skill (and skill level) and does not have the item already (when item is defined).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-16 23:26:15 +02:00
zergtmn
85e7bbaad5 [11369] Restore visuals for infinitely channeled spells
Thx Schmoozerd for pointing problem and testing.
2011-04-17 00:02:03 +06:00
Ambal
5a22b8c6dd [11368] small code refactoring: use container typedefs instead of direct container declarations to simplify code.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-16 13:42:40 +03:00
michalpolko
4b7dffcc09 [11367] Check for SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE when checking school immunity 2011-04-16 11:49:26 +03:00
Schmoozerd
dbcca634e8 [11366] Fix wrong faction-based targeting of DynamicObject's auras 2011-04-16 10:46:14 +03:00
darkstalker
070af93262 [11365] Implement SPELL_ATTR_EX3_CANT_MISS attribute. Should fix alot of 'too-often-missing' spells 2011-04-16 10:23:48 +03:00
VladimirMangos
cdf449cc0a [11364] One more ArenaTeam::GetMaxMembersSize use case. 2011-04-16 02:25:55 +04:00
VladimirMangos
f00d902333 [11363] Small fix for SpellRadiusEntry after recent dbc structure cleanups. 2011-04-16 02:08:50 +04:00
VladimirMangos
6c22335e9a [11362] Really reset UNIT_DYNAMIC_FLAGS at player death 2011-04-15 18:43:18 +04:00
VladimirMangos
bacb39a724 [11361] Add and use max arena team size function instead direct code. 2011-04-15 18:40:43 +04:00
breakwater
b9240d04e3 [11360] Reapply persistent aura at return to affected range.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-15 17:37:14 +04:00
caeruleaus
4a1e9b7d5b [11359] Fixed typo in recent arenatype enum related changes comment.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-15 16:08:13 +04:00
NoFantasy
1523cf5ae3 [11358] Add script effect of spell 45713
DB devs should note the special design for this spell, as it will set proper model for creatures when used from *_addon tables. See code comments.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-15 12:28:21 +02:00
NoFantasy
2c09c11091 [11357] Replace some 0-values with UNIT_DYNFLAG_NONE
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-15 11:07:55 +02:00
NoFantasy
520f420aed [11356] Some cleanup of JUST_ALIVED for creature and add comments.
Also restore npcflags after LoadCreatureAddon.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-15 11:00:58 +02:00
VladimirMangos
adcb84a325 [11355] Use ArenaType enum instead raw values
* Drop duplicate ArenaTeamTypes
* Use enum type where appropriate
* More strict check integrity arena team data at loading.
2011-04-15 03:19:12 +04:00
VladimirMangos
6f8aa617d0 [11354] Resolve porblems with Pet regeneration timer conflict with Creature version.
* Creature regeneration code moved to new virtual function RegenerateAll
* Pet instead direct call own regeneration code overwrite now RegenerateAll

Big thanks to Vladskywolf for problem research and original patch version.
2011-04-15 02:15:29 +04:00
TOM_RUS
24853d6410 This one is SMSG actually, not my fault anyway. You know who to blame. 2011-04-14 09:44:15 -07:00
stfxpi
956d27a266 [11353] Implement spell 46939
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-14 18:42:27 +04:00
BThallid
919ab70452 [11352] Send SMSG_NEW_WORLD after teleport destination set.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-14 17:53:47 +04:00
VladimirMangos
e605b203e2 [11351] Calculate avg. personal rating in more correct way. 2011-04-14 15:44:25 +04:00
VladimirMangos
0912c17cee [11350] Revert "[11349] Instead group online players use arena team full list for claculate avg. personal rating."
This reverts commit aae93a675ca4dc4a936a1f90ad4a67f91161f697.
2011-04-14 15:43:47 +04:00
TOM_RUS
ea1076899b Some lost changes. 2011-04-14 08:30:54 +04:00
TOM_RUS
0f8c46878b Updated some structs and enums. 2011-04-14 08:14:03 +04:00
VladimirMangos
9c34efec41 [11349] Instead group online players use arena team full list for claculate avg. personal rating. 2011-04-14 05:14:42 +04:00
mns
531103b9e5 [11348] Ignore spell power for item spell 43733.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-14 04:34:46 +04:00
Ambal
b115986951 [11347] More accurate calculation of next movement update time in RandomMovementGenerator::_setRandomLocation()
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-14 01:42:22 +03:00
VladimirMangos
07fcdc33cc [11346] Use DELETE/INSERT in 11335_02_mangos_mangos_string.sql 2011-04-13 20:27:23 +04:00
Yehonal
42880e2b8a [11345] More informative message for nonexisten pettition.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-13 20:07:06 +04:00
VladimirMangos
b4ab2b2441 [11344] Make .npc delete safe for instances and complete no static creatures code cases. 2011-04-13 19:17:14 +04:00
VladimirMangos
6c8efb4458 [11343] Check creature*_addon.auras duplicates at loading.
This already checked at apply to creature but startup check more helpful for DB devs.
Also remove use single field structure use for store addon.auras data
2011-04-13 15:27:14 +04:00
Ambal
695ad4d54e [11342] Use Position struct to hold object coordinates - minor code refactoring.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-13 02:25:07 +03:00
NoFantasy
ece78f44fa [11341] Add dummy effect of spell 32146
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-13 00:29:00 +02:00
VladimirMangos
6f74cf8994 [11340] Type in Spell::DoSummon error message 2011-04-13 01:35:15 +04:00
Ambal
c60bee7173 [11339] Set correct summon coordinates for creature pet, created in Spell::EffectSummonPet(). Should fix rare crashes in RandomMovementGenerator<Creature>::_setRandomLocation.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-12 23:41:18 +03:00
VladimirMangos
764345609e [11338] Remove trailing spaces.
.git/hooks/pre-commit.sample -> .git/hooks/pre-commit can catch this cases. ;)
2011-04-12 18:29:11 +04:00
Darkknight900
d83c75b555 [11337] Better wording. v1.01
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-12 17:57:13 +04:00
Schmoozerd
328bd68350 [11336] Use movgen Finilize for code applied at normal movegen expire
This let resolve porblems for casts/etc that before happens
before real movgen stop from code logic.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-12 15:39:29 +04:00
Schmoozerd
ea516bef45 [11335] Let npc info command display more information.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-12 13:59:26 +04:00
NoFantasy
d75fd850ac [11334] Add dummy aura effect of spell 50141
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-12 01:29:17 +02:00
Ambal
e84d8fe335 [11333] Reserve 9 bytes for PackedGuid buffer instead of 4096 to save RAM.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-12 00:57:14 +03:00
VladimirMangos
6f34696350 [11332] Avoid use direct mechanic names in loop bounds for version portability. 2011-04-11 23:57:52 +04:00
VladimirMangos
16c562b7a0 [11331] Fixed equipment set save.
This resolve problem with wrong equipment set name show after relog
but only for new saved equipment sets. Old sets still have wrong names.
2011-04-11 23:55:21 +04:00