# COPYRIGHT (C) 2006 LUDMILLA TEAM
from Ludmilla import * # Import server environment
from random import * # Randomiser Import
import config as cfg # Import of configuration constants
reload(cfg)
import consts as co # Import of constants
reload(co)
import const_skills as skill_co # Import of constants (skills)
reload(skill_co)
import const_spells as spell_co # Import of constants (skills)
reload(spell_co)
import player_class as player_cls
reload(player_cls)
ENABLE = TRUE = co.TRUE
DISABLE = FALSE = NULL = co.FALSE
# ####################################################################################
# called by core before any Affects were removed
def OnUnitDeath(unit, killer):
print "OnUnitDeath: unit[%s] killer[%s]" % (unit.GetName(), killer.GetName())
if unit.IsPlayer():
# BattleGround Support
if unit.isInBG(): player_cls.OnBattleGroundFlagDrop(unit)
# ####################################################################################
# called by core
def OnUnitStealth(unit):
print "OnUnitStealth: unit[%s]" % (unit.GetName())
if unit.IsPlayer():
# BattleGround Support
if unit.isInBG(): player_cls.OnBattleGroundFlagDrop(unit)
# ####################################################################################
# called by core
def OnUnitMount(unit):
print "OnUnitMount: unit[%s]" % (unit.GetName())
if unit.IsPlayer():
# BattleGround Support
if unit.isInBG(): player_cls.OnBattleGroundFlagDrop(unit)
# ####################################################################################
# called by core
def OnUnitImmunity(unit):
print "OnUnitImmunity: unit[%s]" % (unit.GetName())
if unit.IsPlayer():
# BattleGround Support
if unit.isInBG(): player_cls.OnBattleGroundFlagDrop(unit)
# -- EOF --