Commit Graph

56 Commits

Author SHA1 Message Date
Spp
2454c290b8 Code Style (game + scripts only):
"==" --> " == " (when needed)

--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp
49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp
d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
raczman
91b8ee104e Added new type-safe cast functions.
This, when properly used, should get rid of most memory corruption issues,
currently, casting types C-style with no checks leads to some abstract crashing.
Functionality is same as with dynamic_cast<>, but with no RTTI check - so when
casting into invalid type you will receive NULL, and most probably crash.
At the same time, i took the liberty to convert most Player* casts to ToPlayer().
Still needs crapload of casts being moved to new facility.

--HG--
branch : trunk
2010-03-07 15:20:19 +01:00
Brian
486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
thenecromancer
fbe09a92f9 Allow spells with effect mechanic to allow apply other effects when effect with mechanic would be fail due to effect/state immunity.
--HG--
branch : trunk
2010-01-20 21:10:18 +01:00
n0n4m3
99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
thenecromancer
8dd67e8bb3 Allow state/effect immunities ignore whole spell when one effect is immuned
(Fixes getting part of CC auras with some immunities)

--HG--
branch : trunk
2010-01-13 10:20:00 +01:00
Astellar
a4895ce876 Fixed previous commit. Now elemental is despawned when totem is replaced.
--HG--
branch : trunk
2010-01-05 02:42:40 +03:00
Astellar
51d0e0fa8c Fixed Issue 10. Now summoned elemental is correctly despawned.
Try to find a better place for such check...

--HG--
branch : trunk
2010-01-05 01:46:22 +03:00
n0n4m3
515cf192ef Update Spell code for 322a. Part 1
--HG--
branch : trunk
2009-12-17 12:18:10 +01:00
Brian
45d74f8e05 * Add support for proper team model IDs for totems.
* They are no longer random.
* Thanks to Zor for original patch

--HG--
branch : trunk
2009-12-14 11:02:44 -07:00
maximius
3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius
e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius
26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius
cdfb402122 *Hacky fix to Grounding Totem by Themris (better than no fix at all, and very difficult to fix properly)
--HG--
branch : trunk
2009-09-22 18:13:59 -07:00
maximius
32798803f8 *[8480] Provided real-time update for guidl ranks rights.
Specially for guild bank tab access rights (including currently open tab case!)
Send roster broadcast for all online guild memebers at any rank edit and guild
bank tab buy. Author: VladimirMangos
*Fix a pretty stupid mistake of mine with that Stoneclaw Totem fix, put the code block in the wrong function!
*Use comparison instead of std::min (for some reason std::min seems to expect 3 arguments on Windows!?)

--HG--
branch : trunk
2009-09-14 13:34:23 -07:00
maximius
49b6e6b037 *Stoneclaw Totem & Glyph of Stoneclaw Totem by Themris and thenecromancer
--HG--
branch : trunk
2009-09-14 12:09:22 -07:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
7bd47f8827 [8225] Some fixes from 320 branch. Author: tomrus88
--HG--
branch : trunk
2009-07-30 10:26:15 +08:00
thenecromancer
ea7ac26e72 *Allow totems to cast spell2 from DB instantnly when put down
--HG--
branch : trunk
2009-07-05 17:29:28 +02:00
megamage
111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -05:00
megamage
572a9191d9 *Some creature display id update. By VladimirMangos and GriffonHeart
--HG--
branch : trunk
2009-06-15 18:02:12 -05:00
megamage
67a356767d [7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:40:44 -05:00
megamage
fa1dcd16cf *Update summon system.
--HG--
branch : trunk
2009-05-06 13:34:11 -05:00
QAston
977295bb59 *Searing totem is no longer kamikaze
--HG--
branch : trunk
2009-05-03 18:03:01 +02:00
megamage
f6e8ccb239 *Clean up summon code.
--HG--
branch : trunk
2009-05-03 10:45:34 -05:00
megamage
122d944945 *Update summon system.
*Fix the bug that shaman cannot summon fire elemental.
*Fix the bug that totem meters cannot be displayed.

--HG--
branch : trunk
2009-05-02 19:24:22 -05:00
megamage
b75f3e7102 *Fix a bug that totem cannot be summoned.
--HG--
branch : trunk
2009-04-28 00:07:03 -05:00
megamage
34599a46f7 *Some update of summon effect code.
--HG--
branch : trunk
2009-04-27 18:12:45 -05:00
megamage
68fd41d2c8 *Fix a bug that pet/charmed cannot AOE neutral creatures.
--HG--
branch : trunk
2009-04-19 19:45:54 -05:00
megamage
f0cbed1ad8 *Merge.
--HG--
branch : trunk
2009-04-17 15:29:55 -05:00
Anubisss
96ffb827ae *Better names for var Modelid.
--HG--
branch : trunk
2009-04-16 00:11:48 +02:00
megamage
031df598ab *Try to fix crash.
--HG--
branch : trunk
2009-03-31 09:18:39 -06:00
megamage
ff83e4a9b1 *Fix some bugs of pet.
--HG--
branch : trunk
2009-03-27 22:47:28 -06:00
megamage
8f627853df *More work on summon system.
--HG--
branch : trunk
2009-03-20 14:01:46 -06:00
megamage
a2392121f0 *Fix the bug that summon dbc is not read. Now creatures can be summoned.
*Make minipet as tempsummon instead of pet. Make totem as tempsummon.

--HG--
branch : trunk
2009-03-19 14:41:30 -06:00
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
Drahy
5dab980495 * Updated copyright notice for new year (2009) part 2
* Changed mangos website

--HG--
branch : trunk
2009-02-04 12:42:26 +01:00
Drahy
7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
megamage
40e7dcb599 *Update to Mangos 7111.
--HG--
branch : trunk
2009-01-18 19:01:41 -06:00
megamage
13cfff2327 *Mangos [7023] Remove not used useCharges for IsImmunedToSpell/IsImmunedToDamage. By DiSlord.
--HG--
branch : trunk
2009-01-04 16:45:32 -06:00
megamage
b6c288ca9f *Update to Mangos 6902. Source: Mangos.
*Skipped rev: rev 6893, some code about waypoint movement.

--HG--
branch : trunk
2008-12-12 11:21:28 -06:00
megamage
087f735251 *Use react state instead of isaggressive. Allow civilian to fight back.
--HG--
branch : trunk
2008-12-07 09:21:12 -06:00
megamage
32b78f767c *Fix a bug in 307. Only the trigger effect should be applied but not the whole spell.
*Restore build in Linux.
*Change "Added aura" log to level: detail.

--HG--
branch : trunk
2008-11-23 14:42:32 -06:00
megamage
970f2cf8d3 *Do not let totems immune to DOT.
--HG--
branch : trunk
2008-11-23 11:46:36 -06:00
megamage
2c95ee4b31 *Add m_isAggressive. Only aggressive creatures will call AttackStart and MoveInLineOfSight.
*Set melee dmg school for summoned creatures.
*Fix some compiling errors.

--HG--
branch : trunk
2008-11-20 18:54:50 -06:00
w12x
dd97776501 [svn] * Fixed startup error flood if creature model id is 0
* Fixed totems using proper model ids broken after recent change
* Set pet grid activity state to that of caster upon summoning
* Fix a possible crash in ObjectAccessor
note to self: don't commit anything without 3 days testing. ever. after this one ofc.

--HG--
branch : trunk
2008-10-27 15:28:04 -05:00