Skip to content

H7BaseBuff

Class in MMH7Game · MMH7Game.H7BaseBuff · native, perobjectconfig

Object › H7EffectContainer › H7BaseBuff

Subclasses: H7BuffHeroArmyBonus

Using it from Lua
h7.find_all("H7BaseBuff")            -- live instances
h7.find_class("MMH7Game.H7BaseBuff")   -- the class
h7.hook("MMH7Game.H7BaseBuff.AddPreviousTarget", fn)

Properties

NameTypeNotes
mCurrentDurationinttransient, protected
mDontDestroyOnOwnerDeathboolprotected
mDurationinttransient, protected
mDurationEffectsarray<H7DurationEffect>protected
mDurationModifierEffectsarray<H7DurationModifierEffect>protected
mFloatingTextOptionH7StructsAndEnumsNative.EFloatingTextOptionsprotected
mIsActivebooltransient, protected
mIsAoCBuffboolprotected
mIsCombatBuffboolprotected
mIsDebuffboolprotected
mIsFromMagicSourceboolprotected
mIsMultipleBuffableboolprotected
mIsOverPortraitboolprotected
mIsStackableboolprotected
mLogTextOptionH7StructsAndEnumsNative.ELogTextOptionsprotected
mMaximumStackablesintprotected
mPassOnSnapShotboolprotected
mPreviousTargetsarray<H7IEffectTargetable>transient, protected
mSimDurationsarray<H7SimDuration>transient, protected
mTagsarray<H7StructsAndEnumsNative.ESpellTag>protected

Functions

NameDeclaration
AddPreviousTargetfunction AddPreviousTarget(H7IEffectTargetable Target)
AddSimulatedDurationfunction AddSimulatedDuration(H7Effect Effect, int Duration)
ChangesInitiativenative function bool ChangesInitiative()
FlushEffectFXnative function FlushEffectFX()
GetAllTagsnative function GetAllTags(out array<H7StructsAndEnumsNative.ESpellTag> allTags)
GetCurrentDurationfunction int GetCurrentDuration()
GetDontDestroyOnDeathfunction bool GetDontDestroyOnDeath()
GetDurationfunction int GetDuration()
GetDurationModifierEffectsfunction array<H7DurationModifierEffect> GetDurationModifierEffects()
GetDurationModifierTriggerfunction H7StructsAndEnumsNative.ETrigger GetDurationModifierTrigger()
GetFlashIconPathfunction string GetFlashIconPath()
GetFloatingTextOptionfunction H7StructsAndEnumsNative.EFloatingTextOptions GetFloatingTextOption()
GetIconfunction Texture2D GetIcon()
GetLogTextOptionfunction H7StructsAndEnumsNative.ELogTextOptions GetLogTextOption()
GetMaxAmountStackablefunction int GetMaxAmountStackable()
GetPermanentStatModsNextRoundnative function GetPermanentStatModsNextRound(out array<H7MeModifiesStat> outStats, H7IEffectTargetable Unit)
GetPreviousTargetsfunction array<H7IEffectTargetable> GetPreviousTargets()
GetSimulatedDurationnative function int GetSimulatedDuration()
GetTagsnative function array<H7StructsAndEnumsNative.ESpellTag> GetTags()
GetTooltipfunction string GetTooltip(optional bool extendedVersion, optional string overwriteBaseString, optional H7StructsAndEnumsNative.ESkillRank considerOnlyEffectsOfRank = 0, optional bool resetRankOverride = true)
GetTooltipByCasterfunction string GetTooltipByCaster(H7ICaster caster)
GetWouldBeDurationIfInitedProperlyfunction int GetWouldBeDurationIfInitedProperly()
Initfunction Init(optional H7IEffectTargetable Target, optional H7ICaster caster, optional bool simulate = false)
InstanciateEffectsFromStructDatafunction InstanciateEffectsFromStructData(optional bool registerEffects = true)
IsActivefunction bool IsActive()
IsBufffunction bool IsBuff()
IsCombatBufffunction bool IsCombatBuff()
IsDebufffunction bool IsDebuff()
IsFromMagicSourcefunction bool IsFromMagicSource()
IsInPreviousTargetsfunction bool IsInPreviousTargets(H7IEffectTargetable Target)
IsMultipleBuffablefunction bool IsMultipleBuffable()
IsOverPortraitfunction bool IsOverPortrait()
IsStackablefunction bool IsStackable()
LoadEffectFXnative function LoadEffectFX()
OnApplyfunction OnApply(optional bool simulate = false)
OnExpirefunction OnExpire(optional bool expireCompletely = true)
PassOnCasterSnapShotfunction bool PassOnCasterSnapShot()
ResetSimDurationfunction ResetSimDuration()
SetActivefunction SetActive(bool IsActive)
SetCurrentDurationfunction SetCurrentDuration(int Value, optional bool updateGui = true)
SetDurationfunction SetDuration(int Value)
SetDurationModifierEffectsfunction SetDurationModifierEffects(array<H7DurationModifierEffect> Effects)
SetPreviousTargetsfunction SetPreviousTargets(array<H7IEffectTargetable> Targets)

Default values

mIsCombatBuff=true
mIsActive=true

Inherited

FromMembers
H7EffectContainerProperties: mAbilitySchool, mAudioVisualEffects, mCaster, mCasterSnapShot, mCommandEffects, mComment, mDamageEffects, mEventManager, mEventuallySuppressesRetaliation, mEventuallySuppressesRetaliationChecked, mFXLoaded, mIcon, mInstanciatedEffects, mInstanciatedEffectsByTooltip, mInstanciatedEffectsDone, mIsDisplayed, mName, mNameInst, mNeedsPrivileg, mOwner, mPrivilegID, mProducesResources, mRankOverride, mResistanceEffects, mSkillType, mSourceContainer, mSpecialEffects, mSpellEffects, mStatModEffects, mTargets, mTargetVectors, mTooltip, mTooltipLocalized, mTooltipLog, mTooltipMapping
Functions: AddLog, AddPlaceholdersToReplBuffer, AddRepl, AddSpellEffect, ApplyHelperReplacements, CanAffectAlly, CanAffectDead, CanAffectEnemy, CanRemoveStasis, ClearSpellEffects, DeleteAllInstanciatedEffects, DidInstanciateEffects, DoOperation, FlushEffectFX, FullfillsSpecialSelectorCondition, GetAllEffects, GetArchetypeEffect, GetArchetypeID, GetBestDamageEffect, GetBuffEffect, GetCaster, GetCasterOriginal, GetClassNameBySelector, GetCorrespondingRank, GetDamageEffect, GetDamageRange, GetDebugName, GetEffectBySelector, GetEffectDamage, GetEffectFunctionProvider, GetEffectOnRank, GetEffectOnRankAsLine, GetEffects, GetEffectsLength, GetEffectsOfType, GetEventManager, GetIcon, GetID, GetInitiator, GetLocaNameForStat, GetModifiedStatsAndValues, GetName, GetNameNative, GetNumGroups, GetOwner, GetPermanentStatMods, GetPersistentResistanceEffects, GetPlaceholders, GetPlaceholdersNew, GetProductionEffectSpecials, GetRankOverride, GetSchool, GetSchoolColor, GetSchoolDamageName, GetSchoolFlashPath, GetSchoolName, GetShieldEffects, GetSkillType, GetSourceEffect, GetSpellEffects, GetStringForOperation, GetTarget, GetTargets, GetTargetVector, GetTargetVectors, GetTeleportEffectRange, GetTimeEntityByEvent, GetTooltip, GetTooltipEffectLists, GetTooltipLocalized, GetTooltipModifierList, HandleIncomeEffects, HasDamagingEffectSpecial, HasInitiator, HasNegativeEffect, HasPositiveEffect, HasStasisEffect, HasStatModEffects, HasStatModFor, InstanciateEffectsFromStructData, IsAbility, IsAllowedChar, IsArchetype, IsBuff, IsDisplayed, IsEqual, IsHeroItem, IsLocaKey, IsMight, IsSkill, LoadEffectFX, LocalizeName, OverrideCaster, ProducesResources, ProvidesCover, ResolveIconPlaceholder, ResolvePlaceholder, SetCaster, SetDisplayed, SetOwner, SetProducesResources, SetRankOverride, SetSourceEffect, SetStatModEffects, SetTarget, SetTargets, SetTargetVector, SetTargetVectors, SortTooltipMapping, SplitPlaceholder, TargetIsImmuneToAllEffects, TargetIsImmuneToAllExecutingEffects, TargetIsImmuneToAllExecutingEffectsOnArchetype, TooltipMappingCompare
Object13 properties, 308 functions